forked from koala-framework/koala-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Model.php
31 lines (27 loc) · 792 Bytes
/
Model.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
31
<?php
// das ist das child model
class Kwc_Abstract_List_Model extends Kwf_Model_Db_Proxy
{
protected $_table = 'kwc_composite_list';
protected $_rowClass = 'Kwc_Abstract_List_Row';
protected $_referenceMap = array(
'Component' => array(
'refModelClass' => 'Kwc_Abstract_List_OwnModel',
'column' => 'component_id'
)
);
protected $_default = array(
'visible' => 1
);
protected function _init()
{
$this->_siblingModels[] = new Kwf_Model_Field(array('fieldName'=>'data'));
parent::_init();
}
protected function _setupFilters()
{
$filter = new Kwf_Filter_Row_Numberize();
$filter->setGroupBy('component_id');
$this->_filters = array('pos' => $filter);
}
}