Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Value/Base64.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_Base64 extends Zend_XmlRpc_Value_Scalar
00038 {
00039 
00047     public function __construct($value, $alreadyEncoded = false)
00048     {
00049         $this->_type = self::XMLRPC_TYPE_BASE64;
00050 
00051         $value = (string)$value;    // Make sure this value is string
00052         if (!$alreadyEncoded) {
00053             $value = base64_encode($value);     // We encode it in base64
00054         }
00055         $this->_value = $value;
00056     }
00057 
00064     public function getValue()
00065     {
00066         return base64_decode($this->_value);
00067     }
00068 }
 All Data Structures Namespaces Files Functions Variables Enumerations