Public Member Functions | |
joinStore () | |
addDateFilter ($date=null) | |
addStoreFilter ($storeId) | |
Protected Member Functions | |
_construct () |
Definition at line 28 of file Collection.php.
_construct | ( | ) | [protected] |
Initialization here
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 30 of file Collection.php.
00031 { 00032 $this->_init('core/design'); 00033 }
addDateFilter | ( | $ | date = null |
) |
Definition at line 42 of file Collection.php.
00043 { 00044 if (is_null($date)) 00045 $date = date("Y-m-d"); 00046 00047 $this->getSelect() 00048 ->where('main_table.date_from <= ?', $date) 00049 ->where('main_table.date_to >= ?', $date); 00050 00051 return $this; 00052 }
addStoreFilter | ( | $ | storeId | ) |
Definition at line 54 of file Collection.php.
00055 { 00056 $this->getSelect() 00057 ->where('main_table.store_id IN(?)', $storeId); 00058 00059 return $this; 00060 }
joinStore | ( | ) |