Пример #1
0
 /**
  *  Enable overwrite protection for all class properties
  *  @name    __set
  *  @type    magic method
  *  @access  public
  *  @param   string key
  *  @param   mixed  value
  *  @return  void
  */
 public function __set($name, $value)
 {
     if ($this->_protect) {
         return $this->call('/Log/message', __METHOD__ . ' not allowed to modify ' . strToUpper($this->_type) . ' request variables', 2);
     }
     return parent::__set($name, $value);
 }
Пример #2
0
 /**
  *  Enable shorthand cookie setting
  *  @name    __set
  *  @type    magic method
  *  @access  public
  *  @param   string key
  *  @param   mixed  value
  *  @return  void
  */
 public function __set($name, $value)
 {
     $this->_removeCounterfit($name);
     setCookie($name, $value);
     return parent::__set($name, $value);
 }
 /**
  *  Magic setter to trigger PHASE_ASSIGN phase hooks and setting the value
  *  @name   __set
  *  @type   method
  *  @access public
  *  @return void
  */
 public function __set($property, $value)
 {
     $this->_enterPhase(self::PHASE_ASSIGN, array('property' => &$property, 'value' => &$value));
     parent::__set($property, $value);
 }