Public Member Functions | |
addStoreFilter (array $storeIds) | |
addRecentlyFiler ($typeId, $subjectId, $subtype=0, $ignore=null, $limit=15) | |
Protected Member Functions | |
_construct () | |
Protected Attributes | |
$_storeIds |
Definition at line 35 of file Collection.php.
_construct | ( | ) | [protected] |
Initialization here
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 44 of file Collection.php.
00045 { 00046 $this->_init('reports/event'); 00047 }
addRecentlyFiler | ( | $ | typeId, | |
$ | subjectId, | |||
$ | subtype = 0 , |
|||
$ | ignore = null , |
|||
$ | limit = 15 | |||
) |
Add recently filter
int | $typeId | |
int | $subjectId | |
int | $subtype | |
int|array | $ignore | |
int | $limit |
Definition at line 71 of file Collection.php.
00072 { 00073 $stores = $this->getResource()->getCurrentStoreIds($this->_storeIds); 00074 $this->_select 00075 ->where('event_type_id=?', $typeId) 00076 ->where('subject_id=?', $subjectId) 00077 ->where('subtype=?', $subtype) 00078 ->where('store_id IN(?)', $stores); 00079 if ($ignore) { 00080 if (is_array($ignore)) { 00081 $this->_select->where('object_id NOT IN(?)', $ignore); 00082 } 00083 else { 00084 $this->_select->where('object_id<>?', $ignore); 00085 } 00086 } 00087 $this->_select->group('object_id') 00088 ->limit($limit); 00089 return $this; 00090 }
addStoreFilter | ( | array $ | storeIds | ) |
Add store ids filter
array | $storeIds |
Definition at line 55 of file Collection.php.
00056 { 00057 $this->_storeIds = $storeIds; 00058 return $this; 00059 }
$_storeIds [protected] |
Definition at line 42 of file Collection.php.