PHP Класс CacheBuster

Наследование: extends CApplicationComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$time string The time string to append to the URL.

Открытые методы

Метод Описание
createUrl ( string $url = '', string $time = null ) : string Create a cache busted URL.

Защищенные методы

Метод Описание
getJoiner ( string $url = '' ) : string Determine the joiner required to append the cache busting string. This checks if the URL contains query string params and returns the appropriate joiner.

Описание методов

createUrl() публичный Метод

Create a cache busted URL.
public createUrl ( string $url = '', string $time = null ) : string
$url string The URL to cache bust.
$time string The time string to append to the url.
Результат string The cache busted URL.

getJoiner() защищенный Метод

Determine the joiner required to append the cache busting string. This checks if the URL contains query string params and returns the appropriate joiner.
protected getJoiner ( string $url = '' ) : string
$url string The URL to check.
Результат string The joiner char (either '?' or '&')

Описание свойств

$time публичное свойство

The time string to append to the URL.
public string $time
Результат string