web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php
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 Diagnostics |
17 * @subpackage Diagnostics |
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_Diagnostics_Exception |
|
25 */ |
|
26 require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php'; |
|
27 |
|
28 /** |
|
29 * @category Zend |
24 * @category Zend |
30 * @package Zend_Service_WindowsAzure |
25 * @package Zend_Service_WindowsAzure |
31 * @subpackage Diagnostics |
26 * @subpackage Diagnostics |
32 * @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) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 */ |
29 */ |
35 abstract class Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract |
30 abstract class Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract |
36 { |
31 { |
37 /** |
32 /** |
50 public function __set($name, $value) { |
45 public function __set($name, $value) { |
51 if (array_key_exists(strtolower($name), $this->_data)) { |
46 if (array_key_exists(strtolower($name), $this->_data)) { |
52 $this->_data[strtolower($name)] = $value; |
47 $this->_data[strtolower($name)] = $value; |
53 return; |
48 return; |
54 } |
49 } |
55 |
50 require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php'; |
56 throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name); |
51 throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name); |
57 } |
52 } |
58 |
53 |
59 /** |
54 /** |
60 * Magic overload for getting properties |
55 * Magic overload for getting properties |
63 */ |
58 */ |
64 public function __get($name) { |
59 public function __get($name) { |
65 if (array_key_exists(strtolower($name), $this->_data)) { |
60 if (array_key_exists(strtolower($name), $this->_data)) { |
66 return $this->_data[strtolower($name)]; |
61 return $this->_data[strtolower($name)]; |
67 } |
62 } |
68 |
63 require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php'; |
69 throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name); |
64 throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name); |
70 } |
65 } |
71 } |
66 } |