コード例 #1
0
 public function getInstance()
 {
     if (self::$oInstance == null) {
         self::$oInstance = new FlexiRemoteJSONServer();
     }
     return self::$oInstance;
 }
コード例 #2
0
ファイル: FlexiRemoteServer.php プロジェクト: u007/FlexiPHP
 public static function getRemoteServer()
 {
     $sCallType = FlexiController::getInstance()->getRequest("_type", "json");
     $sCallType = empty($sCallType) ? "json" : $sCallType;
     switch ($sCallType) {
         case "json":
             return FlexiRemoteJSONServer::getInstance();
             break;
         default:
             throw new FlexiException("Unknown Remote call-type: " . $sCallType, ERROR_UNKNOWNTYPE);
     }
     return null;
 }