glpi / src / plugins / vigilo / Vigilo / VigiloAttribute.php @ fbdbbd6a
History | View | Annotate | Download (402 Bytes)
1 |
<?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 |
} |