From: Chuck Hagenbuch Date: Mon, 25 Oct 2010 03:20:29 +0000 (-0400) Subject: Experiment with passing variable access and method calls to the underlying view. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=44d61f2c0e458c633805e1d9c94629982fdda3e4;p=horde.git Experiment with passing variable access and method calls to the underlying view. --- diff --git a/framework/Core/lib/Horde/Core/Ui/Layout.php b/framework/Core/lib/Horde/Core/Ui/Layout.php index ba66c8280..a8b482605 100644 --- a/framework/Core/lib/Horde/Core/Ui/Layout.php +++ b/framework/Core/lib/Horde/Core/Ui/Layout.php @@ -9,6 +9,16 @@ class Horde_Core_Ui_Layout $this->_view = $view; } + public function __get($name) + { + return $this->_view->$name; + } + + public function __call($method, $args) + { + return call_user_func_array(array($this->_view, $method), $args); + } + public function setLayoutName($layoutName) { $this->_layoutName = $layoutName;