Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Value/Boolean.php
Go to the documentation of this file.
00001 <?php
00027 require_once 'Zend/XmlRpc/Value/Scalar.php';
00028 
00029 
00037 class Zend_XmlRpc_Value_Boolean extends Zend_XmlRpc_Value_Scalar
00038 {
00039 
00046     public function __construct($value)
00047     {
00048         $this->_type = self::XMLRPC_TYPE_BOOLEAN;
00049         // Make sure the value is boolean and then convert it into a integer
00050         // The double convertion is because a bug in the ZendOptimizer in PHP version 5.0.4
00051         $this->_value = (int)(bool)$value;
00052     }
00053 
00059     public function getValue()
00060     {
00061         return (bool)$this->_value;
00062     }
00063 }
 All Data Structures Namespaces Files Functions Variables Enumerations