MODULE = 'bx_tasks'; parent::__construct ($aOptions, $oTemplate); $this->_sTableAlias = 'tt'; $this->_initFilter(3, $this->_oModule->getContexts()); } protected function _getCellContextModule($mixedValue, $sKey, $aField, $aRow) { return parent::_getCellDefault($this->_oModule->getModuleTitle($mixedValue), $sKey, $aField, $aRow); } protected function _getFilterControls() { $sContent = $this->_getFilterSelectOne($this->_sFilter3Name, $this->_sFilter3Value, $this->_aFilter3Values); return $sContent . parent::_getFilterControls(); } protected function _getDataSql($sFilter, $sOrderField, $sOrderDir, $iStart, $iPerPage) { $this->_parseFilterValue($sFilter); if(!empty($this->_sFilter3Value)) $this->_aOptions['source'] .= $this->_oModule->_oDb->prepareAsString(" AND `tp`.`type`=?", $this->_sFilter3Value); return parent::_getDataSql($sFilter, $sOrderField, $sOrderDir, $iStart, $iPerPage); } } /** @} */