コード例 #1
0
ファイル: Policy.php プロジェクト: kanotest15/cbmagento
 protected function _construct()
 {
     parent::_construct();
     $page = $this->getPage();
     if ($pageId = $this->getPageId()) {
         $page->setStoreId(Mage::app()->getStore()->getId())->load($pageId);
     }
 }
コード例 #2
0
ファイル: Transactions.php プロジェクト: kanotest15/cbmagento
 protected function _construct()
 {
     parent::_construct();
     $customerId = Mage::getSingleton('customer/session')->getCustomerId();
     $collection = Mage::getResourceModel('rewardpoints/transaction_collection')->addFieldToFilter('customer_id', $customerId);
     $collection->getSelect()->limit(5)->order('created_time DESC');
     $this->setCollection($collection);
 }