glpi / src / plugins / vigilo / Vigilo / VigiloAttribute.php @ fa5253c9
History | View | Annotate | Download (402 Bytes)
1 | bef4271a | Thibault Louet | <?php
|
---|---|---|---|
2 | |||
3 | class VigiloAttribute extends VigiloXml |
||
4 | { |
||
5 | protected $name; |
||
6 | protected $value; |
||
7 | |||
8 | public function __construct($name, $value) |
||
9 | { |
||
10 | $this->name = $name; |
||
11 | $this->value = $value; |
||
12 | } |
||
13 | |||
14 | public function __toString() |
||
15 | { |
||
16 | return self::sprintf( |
||
17 | '<attribute name="%s">%s</attribute>',
|
||
18 | $this->name,
|
||
19 | $this->value
|
||
20 | ); |
||
21 | } |
||
22 | a5c9df40 | Thibault Louet | } |