Пример #1
0
 /**
  * @param CM_Frontend_Render $render
  * @param CM_Page_Abstract   $page
  */
 public function __construct(CM_Frontend_Render $render, CM_Page_Abstract $page)
 {
     $this->_page = $page;
     $documentClass = $render->getSite()->getDocument();
     $document = new $documentClass();
     parent::__construct($render, $document);
 }
Пример #2
0
 /**
  * @param CM_Frontend_Render $render
  * @param CM_Page_Abstract   $page
  */
 public function __construct(CM_Frontend_Render $render, CM_Page_Abstract $page)
 {
     $this->_renderAdapterPage = new CM_RenderAdapter_Page($render, $page);
     parent::__construct($render, $page);
 }