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