equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service_WindowsAzure |
16 * @package Zend_Service_WindowsAzure |
17 * @subpackage Storage |
17 * @subpackage Storage |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id$ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * @see Zend_Service_WindowsAzure_Exception |
|
25 */ |
|
26 require_once 'Zend/Service/WindowsAzure/Exception.php'; |
|
27 |
|
28 |
|
29 /** |
|
30 * @category Zend |
24 * @category Zend |
31 * @package Zend_Service_WindowsAzure |
25 * @package Zend_Service_WindowsAzure |
32 * @subpackage Storage |
26 * @subpackage Storage |
33 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
34 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
35 * |
29 * |
36 */ |
30 */ |
37 abstract class Zend_Service_WindowsAzure_Storage_StorageEntityAbstract |
31 abstract class Zend_Service_WindowsAzure_Storage_StorageEntityAbstract |
38 { |
32 { |
52 public function __set($name, $value) { |
46 public function __set($name, $value) { |
53 if (array_key_exists(strtolower($name), $this->_data)) { |
47 if (array_key_exists(strtolower($name), $this->_data)) { |
54 $this->_data[strtolower($name)] = $value; |
48 $this->_data[strtolower($name)] = $value; |
55 return; |
49 return; |
56 } |
50 } |
57 |
51 require_once 'Zend/Service/WindowsAzure/Exception.php'; |
58 throw new Exception("Unknown property: " . $name); |
52 throw new Zend_Service_WindowsAzure_Exception("Unknown property: " . $name); |
59 } |
53 } |
60 |
54 |
61 /** |
55 /** |
62 * Magic overload for getting properties |
56 * Magic overload for getting properties |
63 * |
57 * |
65 */ |
59 */ |
66 public function __get($name) { |
60 public function __get($name) { |
67 if (array_key_exists(strtolower($name), $this->_data)) { |
61 if (array_key_exists(strtolower($name), $this->_data)) { |
68 return $this->_data[strtolower($name)]; |
62 return $this->_data[strtolower($name)]; |
69 } |
63 } |
70 |
64 require_once 'Zend/Service/WindowsAzure/Exception.php'; |
71 throw new Exception("Unknown property: " . $name); |
65 throw new Zend_Service_WindowsAzure_Exception("Unknown property: " . $name); |
72 } |
66 } |
73 } |
67 } |