• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Zend/View/Helper/Layout.php

00001 <?php
00024 require_once 'Zend/View/Helper/Abstract.php';
00025 
00034 class Zend_View_Helper_Layout extends Zend_View_Helper_Abstract
00035 {
00037     protected $_layout;
00038 
00044     public function getLayout()
00045     {
00046         if (null === $this->_layout) {
00047             require_once 'Zend/Layout.php';
00048             $this->_layout = Zend_Layout::getMvcInstance();
00049             if (null === $this->_layout) {
00050                 // Implicitly creates layout object
00051                 $this->_layout = new Zend_Layout();
00052             }
00053         }
00054 
00055         return $this->_layout;
00056     }
00057 
00064     public function setLayout(Zend_Layout $layout)
00065     {
00066         $this->_layout = $layout;
00067         return $this;
00068     }
00069 
00077     public function layout()
00078     {
00079         return $this->getLayout();
00080     }
00081 }

Generated on Thu Apr 19 2012 17:01:17 for openbiz by  doxygen 1.7.2