Свойство | Type | Description | |
---|---|---|---|
$originalVector | |||
$publicationService | Publication Service | ||
$smarty | CampTemplate | ||
$themesService | ThemesServiceInterface | Themes Service |
Méthode | Description | |
---|---|---|
__construct ( |
||
fetchTemplate ( string $file, array $params = [], integer $lifetime = 1400 ) : string | Fetch template with smarty | |
getSmarty ( ) : Smarty | Get current smarty object | |
renderTemplate ( string $file, array $params = [], integer $lifetime = 1400, boolean $render = true ) : string | Render template with smarty (will echo outupt) | |
setLifetime ( integer $lifetime ) | Set template cache lifetime | |
setVector ( array $vector ) | Newscoop caching save cached template file content with special vector parameters. |
Méthode | Description | |
---|---|---|
assignParameters ( $params = [] ) | ||
preconfigureSmarty ( ) | ||
preconfigureVector ( ) |
public __construct ( |
||
$themesService | ||
$publicationService |
public renderTemplate ( string $file, array $params = [], integer $lifetime = 1400, boolean $render = true ) : string | ||
$file | string | template file path |
$params | array | array with template parameters |
$lifetime | integer | template cache lifetime (default: 1400 seconds) |
$render | boolean | render or just fetch template (default: true [render]) |
Résultat | string | Template output |
public setLifetime ( integer $lifetime ) | ||
$lifetime | integer |
protected PublicationService,Newscoop\Services $publicationService | ||
Résultat |