Beispiel #1
0
 private static function loadApiData($noCache = false)
 {
     if (!$noCache) {
         self::$apiData = self::getApiDataCache();
         if (self::$apiData) {
             return true;
         }
     }
     //
     $apiUrl = self::$apiHost . '?projectPublicKey=' . self::$projectPublicKey;
     $apiData = self::loadUrlData($apiUrl);
     if (!$apiData) {
         return false;
     }
     $apiData = json_decode($apiData, true);
     if (!$apiData || !$apiData['status']) {
         return false;
     }
     //
     self::$apiData = $apiData['value'];
     if (self::$apiData == null) {
         self::$apiData = true;
     }
     return true;
 }
Beispiel #2
0
 private function parseEnd()
 {
     if ($this->parseMode) {
         TidioElementsParser::end();
     }
 }