芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/lib/horde/framework/Horde/Support/ObjectStub.php
* @category Horde * @license http://www.horde.org/licenses/bsd BSD * @package Support */ /** * @author Michael Slusarz
* @category Horde * @license http://www.horde.org/licenses/bsd BSD * @package Support */ class Horde_Support_ObjectStub { /** * Original data object. * * @var array */ protected $_data; /** * Constructor * * @param object $data The original data object. */ public function __construct($data) { $this->_data = $data; } /** */ public function __get($name) { return isset($this->_data->$name) ? $this->_data->$name : null; } /** */ public function __set($name, $value) { $this->_data->$name = $value; } /** */ public function __isset($name) { return isset($this->_data->$name); } /** */ public function __unset($name) { unset($this->_data->$name); } }