'' && mb_strpos($callbackData['host'], '.') > 0 ) { if($callbackData['scheme'] !== 'http' && $callbackData['scheme'] !== 'https') { throw new RestException('Unsupported handler protocol', static::ERROR_UNSUPPORTED_PROTOCOL); } } else { throw new RestException('Wrong handler URL', static::ERROR_WRONG_HANDLER_URL); } return true; } public static function storeApplicationList($PLACEMENT, $applicationList) { static::$applicationList[$PLACEMENT] = $applicationList; } public static function getApplicationList($PLACEMENT) { return isset(static::$applicationList[$PLACEMENT]) && is_array(static::$applicationList[$PLACEMENT]) ? static::$applicationList[$PLACEMENT] : array(); } }