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; }
private function parseEnd() { if ($this->parseMode) { TidioElementsParser::end(); } }