_init('combine/action'); } public function getEvents($storeId, $limit = 200) { $this->addFieldToFilter('store_id', $storeId) ->setPage(1, $limit); return $this; } public function getLockedEvents($storeId, $pid = null) { if($pid) { $this->addFieldToFilter('locked_by', $pid); } $this->addFieldToFilter('store_id', $storeId); return $this; } }