1 | <?php |
||
16 | class Twig implements Adapter { |
||
17 | protected static $loader = null; |
||
18 | protected static $templatePath = ''; |
||
19 | protected static $twig = null; |
||
20 | const EXTENSION = '.twig'; |
||
21 | |||
22 | public function __construct($path=null,$options=[]){ |
||
27 | |||
28 | public function __call($n,$p){ |
||
31 | |||
32 | public static function __callStatic($n,$p){ |
||
35 | |||
36 | public function render($template,$data=[]){ |
||
43 | |||
44 | public static function exists($path){ |
||
47 | |||
48 | public static function addGlobal($key,$val){ |
||
51 | |||
52 | public static function addGlobals(array $defs){ |
||
57 | |||
58 | public static function addFilter($name,callable $filter){ |
||
61 | |||
62 | public static function addFunction($name,callable $function){ |
||
65 | |||
66 | public static function addFilters(array $defs){ |
||
73 | |||
74 | } |
||
75 |