index 013ed719389f29fa4f30e04387777ecba84473ac..6abc73ae5e181a9b5083e72369a5bf7e88013dd4 100644 (file)
// Check if such an attribute is registered
if(preg_match("/^get_/", $name)){
$varName = preg_replace("/^get_/","", $name);
- if(in_array($varName, $this->properties)){
+ if(in_array_strict($varName, $this->properties)){
$force = isset($args[0]) && $args[0];
return($this->__getProperty($varName, $force));
}
}elseif(preg_match("/^set_/", $name)){
$varName = preg_replace("/^set_/","", $name);
- if(in_array($varName, $this->properties)){
+ if(in_array_strict($varName, $this->properties)){
return($this->__setProperty($varName, $args[0]));
}
}
function __set($varName, $value)
{
// Set property value
- if(in_array($varName, $this->properties)){
+ if(in_array_strict($varName, $this->properties)){
return($this->__setProperty($varName, $value));
}
function __get($varName)
{
- if(in_array($varName, $this->properties)){
+ if(in_array_strict($varName, $this->properties)){
return($this->__getProperty($varName));
}