forked from monarcmoso/staging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Collection.php
executable file
·30 lines (28 loc) · 1.05 KB
/
Collection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* @category Mana
* @package Mana_Filters
* @copyright Copyright (c) http://www.manadev.com
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/* BASED ON SNIPPET: Resources/DB operations with model collections */
/**
* This resource model handles DB operations with a collection of models of type Mana_Filters_Model_Filter2. All
* database specific code for operating collection of Mana_Filters_Model_Filter2 should go here.
* @author Mana Team
*/
class Mana_Filters_Resource_Filter2_Collection extends Mana_Db_Resource_Object_Collection
{
/**
* Invoked during resource collection model creation process, this method associates this
* resource collection model with model class and with resource model class
*/
protected function _construct()
{
$this->_init(strtolower('Mana_Filters/Filter2'));
}
public function addCodeFilter($codes) {
$this->addFieldToFilter('code', array('in' => $codes));
return $this;
}
}