| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * CC-BY License - http://creativecommons.org/licenses/by/3.0/
- *
- * @defgroup DolphinStudio Dolphin Studio
- * @{
- */
- defined('BX_DOL') or die('hack attempt');
- bx_import('BxTemplStudioGridNavigation');
- bx_import('BxDolStudioTemplate');
- bx_import('BxDolStudioNavigationQuery');
- class BxDolStudioNavigationMenus extends BxTemplStudioGridNavigation {
- public function __construct ($aOptions, $oTemplate = false) {
- parent::__construct ($aOptions, $oTemplate);
- $this->oDb = new BxDolStudioNavigationQuery();
- }
- protected function _getDataSql($sFilter, $sOrderField, $sOrderDir, $iStart, $iPerPage) {
- $sModule = '';
- if(strpos($sFilter, $this->sParamsDivider) !== false)
- list($sModule, $sFilter) = explode($this->sParamsDivider, $sFilter);
- if($sModule != '')
- $this->_aOptions['source'] .= $this->oDb->prepare(" AND `tm`.`module`=?", $sModule);
- return parent::_getDataSql($sFilter, $sOrderField, $sOrderDir, $iStart, $iPerPage);
- }
- }
- /** @} */
|