Méthode | Description | |
---|---|---|
__construct ( |
||
getViewMTime ( string $view ) : mixed | ||
renderCached ( string $cacheKey, string $view, array | callable $data = null ) : string | Returns a rendered view. If we find data behind the given cache it uses this data instead of calling $data. So this function does not cache the whole rendered html. To do so use renderFullCache(). | |
renderFullCached ( string $cacheKey, string $view, array | callable $data = null, integer $lifeTime = null, boolean $force = false ) : string | Returns a rendered view. If we find html behind the given cache it returns this directly. This is a couple os ms faster than renderCached since the template engine is never used when there's a valid cache. |
public __construct ( |
||
$jarves | ||
$pageStack | ||
$cacher | ||
$templating | Symfony\Component\Templating\EngineInterface | |
$pageResponseFactory |
public getViewMTime ( string $view ) : mixed | ||
$view | string | |
Résultat | mixed |
public renderFullCached ( string $cacheKey, string $view, array | callable $data = null, integer $lifeTime = null, boolean $force = false ) : string | ||
$cacheKey | string | |
$view | string | |
$data | array | callable | Pass the data as array or a data provider function. |
$lifeTime | integer | In seconds. Default is one hour/3600 seconds. |
$force | boolean | Force to bypass the cache and always call $data. For debuggin purposes. |
Résultat | string |