CacheableView
Table of Contents
Properties
Methods
- getCachedContent() : string|null
- Get cached content
- getCacheKey() : string
- Get cache key for current view
- isCacheEnabled() : bool
- Check if cache is enabled
- setCachedContent() : void
- Set cached content
- getCache() : ViewCache|null
- Get cache instance
- initializeCache() : ViewCache|null
- Initialize cache from registry
Properties
$_cache
private
ViewCache|null
$_cache
= null
Methods
getCachedContent()
Get cached content
protected
getCachedContent(string $key) : string|null
Parameters
- $key : string
Return values
string|nullgetCacheKey()
Get cache key for current view
protected
getCacheKey(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
Return values
stringisCacheEnabled()
Check if cache is enabled
protected
isCacheEnabled() : bool
Return values
boolsetCachedContent()
Set cached content
protected
setCachedContent(string $key, string $content) : void
Parameters
- $key : string
- $content : string
getCache()
Get cache instance
private
getCache() : ViewCache|null
Return values
ViewCache|nullinitializeCache()
Initialize cache from registry
private
initializeCache() : ViewCache|null