protected function _getSelect()
 {
     $ret = parent::_getSelect();
     $ret->whereEquals('parent_component_id', $this->_getParam('componentId'));
     $ret->whereEquals('ignore_visible', true);
     return $ret;
 }
Example #2
0
 protected function _getSelect()
 {
     $ret = parent::_getSelect();
     $component = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($this->_getParam('componentId'), array('ignoreVisible' => true));
     $ret->whereEquals('component_id', $component->chained->dbId);
     return $ret;
 }
 protected function _initColumns()
 {
     parent::_initColumns();
     $this->_columns->add(new Kwf_Grid_Column_Date('date', trlKwf('Date')));
     $this->_columns->add(new Kwf_Grid_Column('type', trlKwf('Type')));
     $this->_columns->add(new Kwf_Grid_Column('message', trlKwf('Message'), 300));
 }
Example #4
0
 protected function _initColumns()
 {
     Kwf_Controller_Action_Auto_Kwc_Grid::_initColumns();
     $this->_columns->add(new Kwf_Grid_Column('name', trlKwf('Name'), 200));
     $this->_columns->add(new Kwf_Grid_Column_Visible());
     // Not visible
     $this->_columns->add(new Kwf_Grid_Column('total_columns'));
 }
 protected function _getSelect()
 {
     $ret = parent::_getSelect();
     if ($this->_getParam('filter_visible')) {
         $ret->whereEquals('visible', $this->_getParam('filter_visible'));
     }
     return $ret;
 }
 protected function _getSelect()
 {
     $ret = parent::_getSelect();
     if ($this->_model->getProxyModel()->hasColumn('component_id')) {
         $ret->whereEquals('component_id', $this->_getParam('componentId'));
     }
     return $ret;
 }
 protected function _getSelect()
 {
     $ret = parent::_getSelect();
     $ret->whereEquals('deleted', 0);
     if ($this->_getParam('query_deleted')) {
         $ret->whereEquals('deleted', $this->_getParam('query_deleted'));
     }
     return $ret;
 }
 public function preDispatch()
 {
     parent::preDispatch();
     $this->_getModel()->setComponentId($this->_getParam('componentId'));
 }
 public function jsonInsertAction()
 {
     $this->_validateMaxEntries();
     parent::jsonInsertAction();
 }
 protected function _beforeDelete(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeDelete($row);
     $this->_checkRowIndependence($row, trlKwf('delete'));
 }
 public function preDispatch()
 {
     $this->setModel($this->_getComponent()->getComponent()->getChildModel());
     parent::preDispatch();
 }
 protected function _getSelect()
 {
     $ret = Kwf_Controller_Action_Auto_Kwc_Grid::_getSelect();
     return $ret;
 }