blob: 0fc146165ea55f95408a565597e5c3d0a2e6a871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/**
* An Integer.
*
* @package Elgg.Core
* @subpackage XMLRPC
*/
class XMLRPCIntParameter extends XMLRPCParameter {
/**
* A new XML int
*
* @param int $value Value
*/
function __construct($value) {
parent::__construct();
$this->value = (int)$value;
}
/**
* Convert to string
*
* @return string
*/
function __toString() {
return "<value><i4>{$this->value}</i4></value>";
}
}
|