예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public function __set($name, $value)
 {
     if ($name == 'status_id' && $value != $this->status_id) {
         $this->_clearStrategy();
     }
     return parent::__set($name, $value);
 }
예제 #4
0
파일: Step.class.php 프로젝트: evilgeny/bob
 /**
  *	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);
 }
예제 #5
0
 /**
  *	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);
 }
예제 #6
0
 public function __set($name, $value)
 {
     if ($name == 'status_id') {
         $this->_state = NULL;
     }
     if ($name == 'price') {
         $value = str_replace(',', '.', $value);
     }
     parent::__set($name, $value);
 }