1 | <?php |
||
17 | class loader implements \Twig_LoaderInterface, \Twig_ExistsLoaderInterface, \Twig_SourceContextLoaderInterface |
||
18 | { |
||
19 | /* @var array */ |
||
20 | protected $blocks_data = array(); |
||
21 | |||
22 | /* @var array */ |
||
23 | protected $content_types = array(); |
||
24 | |||
25 | /** |
||
26 | * Constructor |
||
27 | * |
||
28 | * @param \blitze\content\services\types $content Content types object |
||
29 | * @param \blitze\sitemaker\model\mapper_factory $mapper_factory Mapper factory object |
||
30 | */ |
||
31 | public function __construct(\blitze\content\services\types $content, \blitze\sitemaker\model\mapper_factory $mapper_factory) |
||
57 | |||
58 | public function setPaths() |
||
62 | |||
63 | /** |
||
64 | * @param string $name |
||
65 | * @return mixed |
||
66 | * @throws \Twig_Error_Loader |
||
67 | */ |
||
68 | public function getSource($name) |
||
77 | |||
78 | /** |
||
79 | * Twig_SourceContextLoaderInterface as of Twig 1.27 |
||
80 | * @param string $name |
||
81 | * @return mixed |
||
82 | * @throws \Twig_Error_Loader |
||
83 | */ |
||
84 | public function getSourceContext($name) |
||
93 | |||
94 | /** |
||
95 | * Twig_ExistsLoaderInterface as of Twig 1.11 |
||
96 | * @param string $name |
||
97 | * @return bool |
||
98 | */ |
||
99 | public function exists($name) |
||
103 | |||
104 | /** |
||
105 | * @param string $name |
||
106 | * @return string |
||
107 | */ |
||
108 | public function getCacheKey($name) |
||
112 | |||
113 | /** |
||
114 | * @param string $name |
||
115 | * @param int $time |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function isFresh($name, $time) |
||
127 | |||
128 | /** |
||
129 | * @param string $what |
||
130 | * @param string $name |
||
131 | * @return mixed |
||
132 | */ |
||
133 | protected function getValue($what, $name) |
||
157 | } |
||
158 |