[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Zend Framework 4 * 5 * LICENSE 6 * 7 * This source file is subject to the new BSD license that is bundled 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to [email protected] so we can send you a copy immediately. 14 * 15 * @category Zend 16 * @package Zend_Service_WindowsAzure 17 * @subpackage Storage 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id$ 21 */ 22 23 /** 24 * @see Zend_Service_WindowsAzure_Exception 25 */ 26 require_once 'Zend/Service/WindowsAzure/Exception.php'; 27 28 29 /** 30 * @category Zend 31 * @package Zend_Service_WindowsAzure 32 * @subpackage Storage 33 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 34 * @license http://framework.zend.com/license/new-bsd New BSD License 35 * 36 * @property string $Container Container name 37 * @property string $Name Name 38 * @property string $Etag Etag 39 * @property string $LastModified Last modified date 40 * @property string $Url Url 41 * @property int $Size Size 42 * @property string $ContentType Content Type 43 * @property string $ContentEncoding Content Encoding 44 * @property string $ContentLanguage Content Language 45 * @property boolean $IsPrefix Is Prefix? 46 * @property array $Metadata Key/value pairs of meta data 47 */ 48 class Zend_Service_WindowsAzure_Storage_BlobInstance 49 { 50 /** 51 * Data 52 * 53 * @var array 54 */ 55 protected $_data = null; 56 57 /** 58 * Constructor 59 * 60 * @param string $containerName Container name 61 * @param string $name Name 62 * @param string $etag Etag 63 * @param string $lastModified Last modified date 64 * @param string $url Url 65 * @param int $size Size 66 * @param string $contentType Content Type 67 * @param string $contentEncoding Content Encoding 68 * @param string $contentLanguage Content Language 69 * @param boolean $isPrefix Is Prefix? 70 * @param array $metadata Key/value pairs of meta data 71 */ 72 public function __construct($containerName, $name, $etag, $lastModified, $url = '', $size = 0, $contentType = '', $contentEncoding = '', $contentLanguage = '', $isPrefix = false, $metadata = array()) 73 { 74 $this->_data = array( 75 'container' => $containerName, 76 'name' => $name, 77 'etag' => $etag, 78 'lastmodified' => $lastModified, 79 'url' => $url, 80 'size' => $size, 81 'contenttype' => $contentType, 82 'contentencoding' => $contentEncoding, 83 'contentlanguage' => $contentLanguage, 84 'isprefix' => $isPrefix, 85 'metadata' => $metadata 86 ); 87 } 88 89 /** 90 * Magic overload for setting properties 91 * 92 * @param string $name Name of the property 93 * @param string $value Value to set 94 */ 95 public function __set($name, $value) { 96 if (array_key_exists(strtolower($name), $this->_data)) { 97 $this->_data[strtolower($name)] = $value; 98 return; 99 } 100 101 throw new Exception("Unknown property: " . $name); 102 } 103 104 /** 105 * Magic overload for getting properties 106 * 107 * @param string $name Name of the property 108 */ 109 public function __get($name) { 110 if (array_key_exists(strtolower($name), $this->_data)) { 111 return $this->_data[strtolower($name)]; 112 } 113 114 throw new Exception("Unknown property: " . $name); 115 } 116 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |