Пример #1
0
 function changeActor($PARAMETERS)
 {
     self::$CURRENT_USER = $this->getPerson($PARAMETERS);
     if ($this->currentUser()->success()) {
         self::$IS_AUTHENTICATED = true;
         $this->success = true;
         return $this->currentUser();
     } else {
         self::$IS_AUTHENTICATED = false;
         $this->success = false;
         $this->throwError($this->currentUser()->error());
         return null;
     }
 }