|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00027 require_once 'Zend/XmlRpc/Value/Scalar.php'; 00028 00029 00037 class Zend_XmlRpc_Value_Integer extends Zend_XmlRpc_Value_Scalar 00038 { 00039 00045 public function __construct($value) 00046 { 00047 if ($value > PHP_INT_MAX) { 00048 require_once 'Zend/XmlRpc/Value/Exception.php'; 00049 throw new Zend_XmlRpc_Value_Exception('Overlong integer given'); 00050 } 00051 00052 $this->_type = self::XMLRPC_TYPE_INTEGER; 00053 $this->_value = (int)$value; // Make sure this value is integer 00054 } 00055 00061 public function getValue() 00062 { 00063 return $this->_value; 00064 } 00065 }