web/lib/Zend/Service/WindowsAzure/Storage/BlobInstance.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
--- a/web/lib/Zend/Service/WindowsAzure/Storage/BlobInstance.php	Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/BlobInstance.php	Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
  * @category   Zend
  * @package    Zend_Service_WindowsAzure
  * @subpackage Storage
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
- * @version    $Id: BlobInstance.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version    $Id: BlobInstance.php 24593 2012-01-05 20:35:02Z matthew $
  */
 
 /**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
  * @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
  */
 require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,35 +29,29 @@
  * @category   Zend
  * @package    Zend_Service_WindowsAzure
  * @subpackage Storage
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  * 
- * @property string  $Container       Container name
- * @property string  $Name            Name
- * @property string  $SnapshotId      Snapshot id
- * @property string  $Etag            Etag
- * @property string  $LastModified    Last modified date
- * @property string  $Url             Url
- * @property int     $Size            Size
- * @property string  $ContentType     Content Type
- * @property string  $ContentEncoding Content Encoding
- * @property string  $ContentLanguage Content Language
- * @property string  $CacheControl    Cache control
- * @property string  $BlobType        Blob type
- * @property string  $LeaseStatus     Lease status
- * @property boolean $IsPrefix        Is Prefix?
+ * @property string  $Container       The name of the blob container in which the blob is stored.
+ * @property string  $Name            The name of the blob.
+ * @property string  $SnapshotId      The blob snapshot ID if it is a snapshot blob (= a backup copy of a blob).
+ * @property string  $Etag            The entity tag, used for versioning and concurrency.
+ * @property string  $LastModified    Timestamp when the blob was last modified.
+ * @property string  $Url             The full URL where the blob can be downloaded.
+ * @property int     $Size            The blob size in bytes.
+ * @property string  $ContentType     The blob content type header.
+ * @property string  $ContentEncoding The blob content encoding header.
+ * @property string  $ContentLanguage The blob content language header.
+ * @property string  $CacheControl    The blob cache control header.
+ * @property string  $BlobType        The blob type (block blob / page blob).
+ * @property string  $LeaseStatus     The blob lease status.
+ * @property boolean $IsPrefix        Is it a blob or a directory prefix?
  * @property array   $Metadata        Key/value pairs of meta data
  */
 class Zend_Service_WindowsAzure_Storage_BlobInstance
+	extends Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
 {
     /**
-     * Data
-     * 
-     * @var array
-     */
-    protected $_data = null;
-    
-    /**
      * Constructor
      * 
      * @param string  $containerName   Container name
@@ -101,32 +90,4 @@
             'metadata'         => $metadata
         );
     }
-    
-    /**
-     * Magic overload for setting properties
-     * 
-     * @param string $name     Name of the property
-     * @param string $value    Value to set
-     */
-    public function __set($name, $value) {
-        if (array_key_exists(strtolower($name), $this->_data)) {
-            $this->_data[strtolower($name)] = $value;
-            return;
-        }
-
-        throw new Exception("Unknown property: " . $name);
-    }
-
-    /**
-     * Magic overload for getting properties
-     * 
-     * @param string $name     Name of the property
-     */
-    public function __get($name) {
-        if (array_key_exists(strtolower($name), $this->_data)) {
-            return $this->_data[strtolower($name)];
-        }
-
-        throw new Exception("Unknown property: " . $name);
-    }
 }