1 | <?php |
||
8 | class FileArrayLoader implements Mustache_Loader |
||
9 | { |
||
10 | /** |
||
11 | * @property string |
||
12 | */ |
||
13 | protected $base_dir; |
||
14 | |||
15 | /** |
||
16 | * @property string |
||
17 | */ |
||
18 | protected $extension = '.mustache'; |
||
19 | |||
20 | /** |
||
21 | * @property array |
||
22 | */ |
||
23 | protected $files; |
||
24 | |||
25 | /** |
||
26 | * @param array $files |
||
27 | */ |
||
28 | public function __construct(array $files, array $options = array()) |
||
44 | |||
45 | /** |
||
46 | * Load a Template by name. |
||
47 | * |
||
48 | * @throws Mustache_Exception_UnknownTemplateException If a template file is not found. |
||
49 | * |
||
50 | * @param string $name |
||
51 | * |
||
52 | * @return string Mustache Template source |
||
53 | */ |
||
54 | public function load($name) |
||
64 | |||
65 | /** |
||
66 | * @param string $name |
||
67 | */ |
||
68 | protected function getFileName($name) |
||
78 | } |
||
79 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.