/** * Sets whether the response is buffered from the config, if any * @method setResponseBuffered * @static */ static function setUrls() { $url = Q_Config::get('Q', 'response', 'cacheBaseUrl', null); if (isset($url)) { Q_Uri::cacheBaseUrl($url); } }
/** * Set cache base url, relative to which this particular client may store cached * versions of files. * @method cacheBaseUrl * @static * @param {array} [$base_url=null] If no arguments are passed, just returns the current cache base url. * @return {array} Returns the cache base url at the time the function was called. */ static function cacheBaseUrl($base_url = null) { if (!isset($base_url)) { return isset(self::$cacheBaseUrl) ? self::$cacheBaseUrl : array(); } $prev_base_url = self::$cacheBaseUrl; self::$cacheBaseUrl = $base_url; return $prev_base_url; }