Warning, file /webapps/ocs-webserver/library/Zend/Service/WindowsAzure/Management/ServiceEntityAbstract.php was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 Management
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 /**
0025  * @category   Zend
0026  * @package    Zend_Service_WindowsAzure
0027  * @subpackage Management
0028  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0029  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0030  */
0031 abstract class Zend_Service_WindowsAzure_Management_ServiceEntityAbstract
0032 {
0033     /**
0034      * Data
0035      * 
0036      * @var array
0037      */
0038     protected $_data = null;
0039     
0040     /**
0041      * Magic overload for setting properties
0042      * 
0043      * @param string $name     Name of the property
0044      * @param string $value    Value to set
0045      */
0046     public function __set($name, $value) {
0047         if (array_key_exists(strtolower($name), $this->_data)) {
0048             $this->_data[strtolower($name)] = $value;
0049             return;
0050         }
0051   // require_once 'Zend/Service/WindowsAzure/Management/Exception.php';
0052         throw new Zend_Service_WindowsAzure_Management_Exception("Unknown property: " . $name);
0053     }
0054 
0055     /**
0056      * Magic overload for getting properties
0057      * 
0058      * @param string $name     Name of the property
0059      */
0060     public function __get($name) {
0061         if (array_key_exists(strtolower($name), $this->_data)) {
0062             return $this->_data[strtolower($name)];
0063         }
0064   // require_once 'Zend/Service/WindowsAzure/Management/Exception.php';
0065         throw new Zend_Service_WindowsAzure_Management_Exception("Unknown property: " . $name);
0066     }
0067 }