Exemple #1
0
 /**
  * Magic set
  * @param mixed $name
  * @param mixed $value
  */
 public function __set($name, $value)
 {
     if ($name == 'sessionId') {
         $this->sessionid = $value;
         return true;
     }
     if ($name == 'userId') {
         $this->userid = $value;
     }
     parent::__set($name, $value);
 }
Exemple #2
0
 /**
  * Magic set
  * @param mixed $name
  * @param mixed $value
  */
 public function __set($name, $value)
 {
     if ($name == 'permissionData') {
         $this->permissiondata = $value;
         return true;
     }
     parent::__set($name, $value);
 }