1: <?php
2: /**
3: * @package Core
4: */
5:
6: class Horde_Core_Ui_Layout
7: {
8: protected $_view;
9: protected $_layoutName;
10:
11: public function setView(Horde_View $view)
12: {
13: $this->_view = $view;
14: }
15:
16: public function __get($name)
17: {
18: return $this->_view->$name;
19: }
20:
21: public function __call($method, $args)
22: {
23: return call_user_func_array(array($this->_view, $method), $args);
24: }
25:
26: public function setLayoutName($layoutName)
27: {
28: $this->_layoutName = $layoutName;
29: }
30:
31: public function render($name)
32: {
33: $this->_view->contentForLayout = $this->_view->render($name);
34: return $this->_view->render($this->_layoutName);
35: }
36: }
37: