Experiment with passing variable access and method calls to the underlying view.
authorChuck Hagenbuch <chuck@horde.org>
Mon, 25 Oct 2010 03:20:29 +0000 (23:20 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 25 Oct 2010 03:20:29 +0000 (23:20 -0400)
framework/Core/lib/Horde/Core/Ui/Layout.php

index ba66c82..a8b4826 100644 (file)
@@ -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;