glpi / src / plugins / vigilo / Vigilo / VigiloTemplate.php @ b2feaa03
History | View | Annotate | Download (266 Bytes)
1 | bef4271a | Thibault Louet | <?php
|
---|---|---|---|
2 | |||
3 | 166be9d2 | Francois POIROTTE | class VigiloTemplate extends VigiloXml |
4 | bef4271a | Thibault Louet | { |
5 | protected $name; |
||
6 | |||
7 | public function __construct($tpl) |
||
8 | { |
||
9 | $this->name = $tpl; |
||
10 | } |
||
11 | |||
12 | public function __toString() |
||
13 | { |
||
14 | return self::sprintf('<template>%s</template>', $this->name); |
||
15 | } |
||
16 | a5c9df40 | Thibault Louet | } |