PHP Класс yii\caching\FileDependency

If the last modification time of the file specified via [[fileName]] is changed, the dependency is considered as changed. For more details and usage information on Cache, see the guide article on caching.
С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends yii\caching\Dependency
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$fileName the file path or path alias whose last modification time is used to check if the dependency has been changed.

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

Метод Описание
generateDependencyData ( Cache $cache ) : mixed Generates the data needed to determine if dependency has been changed.

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

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

This method returns the file's last modification time.
protected generateDependencyData ( Cache $cache ) : mixed
$cache Cache the cache component that is currently evaluating this dependency
Результат mixed the data needed to determine if dependency has been changed.

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

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

the file path or path alias whose last modification time is used to check if the dependency has been changed.
public $fileName