/** * Overwrite StateObject->__call so we are able to handle ContentParameters->BodyPreference() * * @access public * @return mixed */ public function __call($name, $arguments) { if ($name === "BodyPreference") { return $this->BodyPreference($arguments[0]); } return parent::__call($name, $arguments); }
/** * PHP magic to implement any getter, setter, has and delete operations * on an instance variable. * * NOTICE: All magic getters and setters of this object which are not defined in the unsetdata array are passed to the current CPO. * * Methods like e.g. "SetVariableName($x)" and "GetVariableName()" are supported * * @access public * @return mixed */ public function __call($name, $arguments) { $lowname = strtolower($name); $operator = substr($lowname, 0, 3); $var = substr($lowname, 3); if (array_key_exists($var, $this->unsetdata)) { return parent::__call($name, $arguments); } return $this->contentParameters[$this->currentCPO]->__call($name, $arguments); }