Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/WindowsAzure/Storage/SignedIdentifier.php
Go to the documentation of this file.
00001 <?php
00026 require_once 'Zend/Service/WindowsAzure/Exception.php';
00027 
00040 class Zend_Service_WindowsAzure_Storage_SignedIdentifier
00041 {
00047     protected $_data = null;
00048     
00057     public function __construct($id = '', $start = '', $expiry = '', $permissions = '') 
00058     {
00059         $this->_data = array(
00060             'id'           => $id,
00061             'start'        => $start,
00062             'expiry'       => $expiry,
00063             'permissions'  => $permissions
00064         );
00065     }
00066     
00073     public function __set($name, $value) {
00074         if (array_key_exists(strtolower($name), $this->_data)) {
00075             $this->_data[strtolower($name)] = $value;
00076             return;
00077         }
00078 
00079         throw new Exception("Unknown property: " . $name);
00080     }
00081 
00087     public function __get($name) {
00088         if (array_key_exists(strtolower($name), $this->_data)) {
00089             return $this->_data[strtolower($name)];
00090         }
00091 
00092         throw new Exception("Unknown property: " . $name);
00093     }
00094 }
 All Data Structures Namespaces Files Functions Variables Enumerations