コード例 #1
0
ファイル: Reference.php プロジェクト: roed/zend-mvc-extend
 function setActions($value)
 {
     $name = $this->getReference();
     $Block = Twm::getLayout()->getBlock($name);
     foreach ($value as $method => $params) {
         $Block->{$method}($params);
     }
 }
コード例 #2
0
ファイル: Design.php プロジェクト: roed/zend-mvc-extend
 /**
  *
  * @return Twm_Core_Design_Layout
  */
 function getLayout()
 {
     if (null === $this->_layout) {
         $layout = Twm::getLayout();
         $this->_layout = $layout;
     }
     return $this->_layout;
 }
コード例 #3
0
ファイル: Layout.php プロジェクト: roed/zend-mvc-extend
 function init()
 {
     $Layout = Twm::getLayout();
     $Layout->setAdapter($this->getLayoutAdapter());
 }