Пример #1
0
 /**
  * Prepare layout
  *
  * @return Mage_Oauth_Block_Customer_Token_List
  */
 protected function _prepareLayout()
 {
     /** @var $toolbar Mage_Page_Block_Html_Pager */
     $toolbar = $this->getLayout()->createBlock('page/html_pager', 'customer_token.toolbar');
     $toolbar->setCollection($this->_collection);
     $this->setChild('toolbar', $toolbar);
     parent::_prepareLayout();
     return $this;
 }
Пример #2
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
     $grid_per_page_values = explode(",", Mage::getStoreConfig('catalog/frontend/grid_per_page_values'));
     $arr_perpage = array();
     foreach ($grid_per_page_values as $value) {
         $arr_perpage[$value] = $value;
     }
     $pager->setAvailableLimit($arr_perpage);
     $pager->setCollection($this->getCollection());
     $this->setChild('pager', $pager);
     $this->getCollection()->load();
     return $this;
 }
Пример #3
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
     $grid_per_page_values = explode(",", Mage::helper('marketplace')->getCatatlogGridPerPageValues());
     $arr_perpage = array();
     foreach ($grid_per_page_values as $value) {
         $arr_perpage[$value] = $value;
     }
     $pager->setAvailableLimit($arr_perpage);
     $pager->setCollection($this->getCollection());
     $this->setChild('pager', $pager);
     $this->getCollection()->load();
     return $this;
 }
 protected function _prepareLayout()
 {
     $toolbar = $this->getLayout()->createBlock('page/html_pager', 'customer_review_list.toolbar')->setCollection($this->_getCollection());
     $this->setChild('toolbar', $toolbar);
     return parent::_prepareLayout();
 }
Пример #5
0
 /**
  * @return Mage_Core_Block_Abstract
  */
 protected function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
Пример #6
0
 /**
  * Instantiate pagination
  *
  * @return Enterprise_GiftRegistry_Block_Customer_List
  */
 protected function _prepareLayout()
 {
     $pager = $this->getLayout()->createBlock('page/html_pager', 'giftregistry.list.pager')->setCollection($this->getEntityCollection())->setIsOutputRequired(false);
     $this->setChild('pager', $pager);
     return parent::_prepareLayout();
 }
Пример #7
0
 public function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
Пример #8
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Address Book'));
     return parent::_prepareLayout();
 }