public function __set($name, $value) { if ($name == 'params') { throw new RM_Base_Exception_Internal("Unable to set `params' value directly. Use `setParams()' method instead."); } return parent::__set($name, $value); }
public function __set($name, $value) { if ($name == 'script_type') { throw new RM_Base_Exception_Internal("You cannot change a script type in the scipt."); } return parent::__set($name, $value); }
public function __set($name, $value) { if ($name == 'status_id' && $value != $this->status_id) { $this->_clearStrategy(); } return parent::__set($name, $value); }
/** * Set value of property * * @param name string Property name * @param value mixed Property value * @return void */ protected function __set($name, $value) { if (in_array($name, qw2('result_id step_id')) && $this->_propInitial($name)) { throw new RM_Base_Exception_BadUsage("Cannot change property `{$name}' of object `" . get_class($this) . "'"); } parent::__set($name, $value); }
/** * Set value of property * * @param name string Property name * @param value mixed Property value * @return void */ protected function __set($name, $value) { if (in_array($name, qw2('anketa_id respondent_id begin_time end_time')) && $this->_propInitial($name)) { throw new RM_Base_Exception_BadUsage("Cannot change property `{$name}' of object `" . get_class($this) . "'"); } parent::__set($name, $value); }
public function __set($name, $value) { if ($name == 'status_id') { $this->_state = NULL; } if ($name == 'price') { $value = str_replace(',', '.', $value); } parent::__set($name, $value); }