| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * @package Dolphin Core
- * @copyright Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
- */
- defined('BX_DOL') or die('hack attempt');
- // TODO: reconsider almost all functionality in this file, according to new concept it should NOT be separate page with all categories, every module has its own page with tags
- bx_import('BxDolPageView');
- bx_import('BxBaseCategories');
- class BxBaseCategoriesModule extends BxDolPageView
- {
- var $_sPage;
- var $_sTitle;
- var $_sUrl;
- var $_aParam;
- function BxBaseCategoriesModule($aParam, $sTitle, $sUrl)
- {
- $this->_sPage = 'categ_module';
- $this->_sTitle = $sTitle ? $sTitle : _t('_categ_users');
- $this->_sUrl = $sUrl;
- $this->_aParam = $aParam;
- parent::BxDolPageView($this->_sPage);
- }
- function getBlockCode_Common($iBlockId)
- {
- $oCateg = new BxBaseCategories();
- $oCateg->getTagObjectConfig();
- $aParam = array(
- 'type' => $this->_aParam['type'],
- 'common' => true
- );
- return $oCateg->display($aParam, $iBlockId, '', true, 1, $this->_sUrl);
- }
- function getBlockCode_All($iBlockId)
- {
- $oCateg = new BxBaseCategories();
- $oCateg->getTagObjectConfig();
- $this->_aParam['common'] = false;
- return array(
- $oCateg->display($this->_aParam, $iBlockId, '', true, getParam('categ_show_columns'), $this->_sUrl),
- array(),
- array(),
- $this->_sTitle
- );
- }
- }
|