Building in security capabilities.

This commit is contained in:
Josh Sherman 2010-10-06 00:01:49 -04:00
parent 0a6c124302
commit 9fe5ce72d4
7 changed files with 282 additions and 29 deletions

View file

@ -115,14 +115,12 @@ class Config extends Object
*
* Prohibits the direct modification of module variables.
*
* @param string $name name of the variable to be set
* @param mixed $value value of the variable to be set
* @return boolean false
* @param string $name name of the variable to be set
* @param mixed $value value of the variable to be set
*/
public function __set($name, $value)
{
trigger_error('Cannot set config variables directly', E_USER_ERROR);
return false;
throw new Exception('Cannot set config variables directly', E_USER_ERROR);
}
/**