1 | <?php |
||
8 | class BasicTemplate extends Template |
||
9 | { |
||
10 | /** |
||
11 | * @var |
||
12 | */ |
||
13 | protected $parent; |
||
14 | |||
15 | /** |
||
16 | * @return string |
||
17 | */ |
||
18 | 3 | public function buildScript() |
|
31 | |||
32 | /** |
||
33 | * @return mixed|string |
||
34 | */ |
||
35 | 3 | public function render() |
|
58 | |||
59 | /** |
||
60 | * @param $name |
||
61 | */ |
||
62 | 3 | public function setParent($name) |
|
66 | |||
67 | /** |
||
68 | * @var array |
||
69 | */ |
||
70 | protected $contentParent = []; |
||
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getContentParent() |
||
79 | |||
80 | /** |
||
81 | * @param array $contentParent |
||
82 | */ |
||
83 | 3 | public function setContentParent($contentParent) |
|
87 | } |
||
88 |
On one hand,
eval
might be exploited by malicious users if they somehow manage to inject dynamic content. On the other hand, with the emergence of faster PHP runtimes like the HHVM,eval
prevents some optimization that they perform.