Source for file Location.php
Documentation is available at Location.php
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation.
* @author Hector Ortiz (FreeNAC Core Team)
* @copyright 2007 FreeNAC
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License Version 2
* @link http://www.freenac.net
private $props =
array();
$this->logger->debug($query,3);
* Universal Accessor Method
* We are redirecting all unresolved method calls to this handler,
* so that we can emulate arbitraty accessor methods.
* With this trick, the user can add new fields to the system tables
* and will be able to access them in the policy as
* $system->getDBFieldName() without haveing to change this class
* @throws If the db field does not exist, Log Error and Deny as default action
public function __call($methodName, $parameters)
# If methodname starts with get
if (substr($methodName,0,3) ==
"get")
$dbfieldname =
substr($methodName,3);
return $this->props[$key];
$this->logger->debug("Field $methodName doesn't exist",2);
* Return all properties assigned to this system. This method is here only for debugging purposes, please delete it after
* @return array All properties present
Documentation generated on Mon, 17 Nov 2008 01:10:40 +0100 by phpDocumentor 1.4.0