blob: 8381afb114e0ba8ffa9f776f2f4204408f239fb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* @class XMLRPCStringParameter A string.
*/
class XMLRPCStringParameter extends XMLRPCParameter
{
function __construct($value)
{
parent::__construct();
$this->value = $value;
}
function __toString()
{
$value = htmlentities($this->value);
return "<value><string>{$value}</string></value>";
}
}
|