File indexing completed on 2024-12-29 05:28:04

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Service_WindowsAzure
0017  * @subpackage Storage
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id$
0021  */
0022 
0023 /**
0024  * @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
0025  */
0026 // require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
0027 
0028 /**
0029  * @category   Zend
0030  * @package    Zend_Service_WindowsAzure
0031  * @subpackage Storage
0032  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0033  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0034  * 
0035  * @property string  $Container       The name of the blob container in which the blob is stored.
0036  * @property string  $Name            The name of the blob.
0037  * @property string  $SnapshotId      The blob snapshot ID if it is a snapshot blob (= a backup copy of a blob).
0038  * @property string  $Etag            The entity tag, used for versioning and concurrency.
0039  * @property string  $LastModified    Timestamp when the blob was last modified.
0040  * @property string  $Url             The full URL where the blob can be downloaded.
0041  * @property int     $Size            The blob size in bytes.
0042  * @property string  $ContentType     The blob content type header.
0043  * @property string  $ContentEncoding The blob content encoding header.
0044  * @property string  $ContentLanguage The blob content language header.
0045  * @property string  $CacheControl    The blob cache control header.
0046  * @property string  $BlobType        The blob type (block blob / page blob).
0047  * @property string  $LeaseStatus     The blob lease status.
0048  * @property boolean $IsPrefix        Is it a blob or a directory prefix?
0049  * @property array   $Metadata        Key/value pairs of meta data
0050  */
0051 class Zend_Service_WindowsAzure_Storage_BlobInstance
0052   extends Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
0053 {
0054     /**
0055      * Constructor
0056      * 
0057      * @param string  $containerName   Container name
0058      * @param string  $name            Name
0059      * @param string  $snapshotId      Snapshot id
0060      * @param string  $etag            Etag
0061      * @param string  $lastModified    Last modified date
0062      * @param string  $url             Url
0063      * @param int     $size            Size
0064      * @param string  $contentType     Content Type
0065      * @param string  $contentEncoding Content Encoding
0066      * @param string  $contentLanguage Content Language
0067      * @param string  $cacheControl    Cache control
0068      * @param string  $blobType        Blob type
0069      * @param string  $leaseStatus     Lease status
0070      * @param boolean $isPrefix        Is Prefix?
0071      * @param array   $metadata        Key/value pairs of meta data
0072      */
0073     public function __construct($containerName, $name, $snapshotId, $etag, $lastModified, $url = '', $size = 0, $contentType = '', $contentEncoding = '', $contentLanguage = '', $cacheControl = '', $blobType = '', $leaseStatus = '', $isPrefix = false, $metadata = array()) 
0074     {         
0075         $this->_data = array(
0076             'container'        => $containerName,
0077             'name'             => $name,
0078           'snapshotid'     => $snapshotId,
0079             'etag'             => $etag,
0080             'lastmodified'     => $lastModified,
0081             'url'              => $url,
0082             'size'             => $size,
0083             'contenttype'      => $contentType,
0084             'contentencoding'  => $contentEncoding,
0085             'contentlanguage'  => $contentLanguage,
0086             'cachecontrol'     => $cacheControl,
0087             'blobtype'         => $blobType,
0088             'leasestatus'      => $leaseStatus,
0089             'isprefix'         => $isPrefix,
0090             'metadata'         => $metadata
0091         );
0092     }
0093 }