|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00026 require_once 'Zend/Service/WindowsAzure/Exception.php'; 00027 00028 00041 class Zend_Service_WindowsAzure_Storage_TableInstance 00042 { 00048 protected $_data = null; 00049 00058 public function __construct($id, $name, $href, $updated) 00059 { 00060 $this->_data = array( 00061 'id' => $id, 00062 'name' => $name, 00063 'href' => $href, 00064 'updated' => $updated 00065 ); 00066 } 00067 00074 public function __set($name, $value) { 00075 if (array_key_exists(strtolower($name), $this->_data)) { 00076 $this->_data[strtolower($name)] = $value; 00077 return; 00078 } 00079 00080 throw new Exception("Unknown property: " . $name); 00081 } 00082 00088 public function __get($name) { 00089 if (array_key_exists(strtolower($name), $this->_data)) { 00090 return $this->_data[strtolower($name)]; 00091 } 00092 00093 throw new Exception("Unknown property: " . $name); 00094 } 00095 }