mirror of
https://github.com/smarty-php/smarty.git
synced 2026-08-07 14:04:13 +02:00
26 lines
633 B
PHP
26 lines
633 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Smarty\Compile;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This class does extend all internal compile plugins
|
||
|
|
*
|
||
|
|
|
||
|
|
|
||
|
|
*/
|
||
|
|
interface CompilerInterface {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Compiles code for the tag
|
||
|
|
*
|
||
|
|
* @param array $args array with attributes from parser
|
||
|
|
* @param \Smarty\Compiler\Template $compiler compiler object
|
||
|
|
* @param array $parameter array with compilation parameter
|
||
|
|
*
|
||
|
|
* @return bool|string compiled code or true if no code has been compiled
|
||
|
|
* @throws \Smarty\CompilerException
|
||
|
|
*/
|
||
|
|
public function compile($args, \Smarty\Compiler\Template $compiler, $parameter = [], $tag = null, $function = null);
|
||
|
|
|
||
|
|
public function isCacheable(): bool;
|
||
|
|
}
|