|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00026 require_once 'Zend/Service/WindowsAzure/Exception.php'; 00027 00028 00040 class Zend_Service_WindowsAzure_Storage_QueueInstance 00041 { 00047 protected $_data = null; 00048 00055 public function __construct($name, $metadata = array()) 00056 { 00057 $this->_data = array( 00058 'name' => $name, 00059 'metadata' => $metadata, 00060 'approximatemessagecount' => 0 00061 ); 00062 } 00063 00070 public function __set($name, $value) { 00071 if (array_key_exists(strtolower($name), $this->_data)) { 00072 $this->_data[strtolower($name)] = $value; 00073 return; 00074 } 00075 00076 throw new Exception("Unknown property: " . $name); 00077 } 00078 00084 public function __get($name) { 00085 if (array_key_exists(strtolower($name), $this->_data)) { 00086 return $this->_data[strtolower($name)]; 00087 } 00088 00089 throw new Exception("Unknown property: " . $name); 00090 } 00091 }