コード例 #1
0
ファイル: auth.php プロジェクト: savonix/nexista
 /**
  * Registers a function to be called on auth session expiry
  *
  * This function will be called when the user's session expires.
  * It might be used to reshow a login screen.
  *
  * @param mixed $handler function or an array of class=>method
  *
  * @return null
  */
 public static function registerExpiredHandler($handler)
 {
     if (is_callable($handler)) {
         self::$_expiredHandler = $handler;
     } else {
         Nexista_Error::init('Auth Expiry Handler Error', NX_ERROR_FATAL);
     }
 }