Class common\cache\TagDependency
| Inheritance | common\cache\TagDependency » yii\caching\Dependency |
|---|
Class TagDependency Зависимость тегтрованного кеша
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $_tags | common\cache\TagDependency |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| addTag() | Добавляет к зависимости тег | common\cache\TagDependency |
| getHasChanged() | common\cache\TagDependency | |
| getTags() | Возвращает установленные теги | common\cache\TagDependency |
| setTags() | Устанавливает теги | common\cache\TagDependency |
| setTagsFromModels() | Устанавливает теги из массива моделей | common\cache\TagDependency |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| generateDependencyData() | common\cache\TagDependency |
Property Details
$_tags = []
Method Details
Добавляет к зависимости тег
| void addTag( $tag ) | ||
| $tag | string | |
| void generateDependencyData( $cache ) | ||
| $cache | ||
| void getHasChanged( $cache ) | ||
| $cache | ||
Возвращает установленные теги
| array getTags( ) |
Устанавливает теги
| void setTags( array $tags ) | ||
| $tags | array | |
Устанавливает теги из массива моделей
| void setTagsFromModels( $models ) | ||
| $models | common\db\ActiveRecord[] | |