private static function getFromApi() { if (!empty(self::$_outputData)) { return; } self::config(); $tmp = XiiCurl::Run(['url' => self::$_apiUrl, 'data' => self::$_apiCondition]); if ($tmp['errorCode']) { self::$_outputData = XiiUtil::JsonDecode($tmp['data']); self::$_dataFrom = self::DATA_FROM_API; } else { self::$_requestError[] = $tmp['errorMsg']; } }
private static function getFromApi() { return XiiCurl::Run(['url' => self::$_apiUrl, 'data' => self::$_apiCondition]); }