getUserType() public static method

public static getUserType ( )
示例#1
0
 public static function getNewsFeedResponse($userType = false)
 {
     if (!$userType) {
         $userType = Utils::getUserType();
     }
     $response = new stdClass();
     $response->message = isset($_ENV["{$userType}_MESSAGE"]) ? $_ENV["{$userType}_MESSAGE"] : '';
     $response->id = isset($_ENV["{$userType}_ID"]) ? $_ENV["{$userType}_ID"] : '';
     $response->version = NINJA_VERSION;
     return $response;
 }