Esempio n. 1
0
 /**
  * Set the user
  *
  * @param int $id   The id of the user.
  *
  * @return Imperium
  */
 static function caller($id)
 {
     self::$user = $id;
     self::$isGuest = false;
     /** Reset the user if false or null */
     if ($id === false || $id === null) {
         self::$user = null;
         self::$isGuest = true;
         return __CLASS__;
     }
     return __CLASS__;
 }