|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00026 require_once 'Zend/Service/WindowsAzure/Exception.php'; 00027 00028 00048 class Zend_Service_WindowsAzure_Storage_BlobInstance 00049 { 00055 protected $_data = null; 00056 00072 public function __construct($containerName, $name, $etag, $lastModified, $url = '', $size = 0, $contentType = '', $contentEncoding = '', $contentLanguage = '', $isPrefix = false, $metadata = array()) 00073 { 00074 $this->_data = array( 00075 'container' => $containerName, 00076 'name' => $name, 00077 'etag' => $etag, 00078 'lastmodified' => $lastModified, 00079 'url' => $url, 00080 'size' => $size, 00081 'contenttype' => $contentType, 00082 'contentencoding' => $contentEncoding, 00083 'contentlanguage' => $contentLanguage, 00084 'isprefix' => $isPrefix, 00085 'metadata' => $metadata 00086 ); 00087 } 00088 00095 public function __set($name, $value) { 00096 if (array_key_exists(strtolower($name), $this->_data)) { 00097 $this->_data[strtolower($name)] = $value; 00098 return; 00099 } 00100 00101 throw new Exception("Unknown property: " . $name); 00102 } 00103 00109 public function __get($name) { 00110 if (array_key_exists(strtolower($name), $this->_data)) { 00111 return $this->_data[strtolower($name)]; 00112 } 00113 00114 throw new Exception("Unknown property: " . $name); 00115 } 00116 }