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