BxDolStudioGrid.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup DolphinStudio Dolphin Studio
  7. * @{
  8. */
  9. defined('BX_DOL') or die('hack attempt');
  10. bx_import('BxTemplGrid');
  11. bx_import('BxDolStudioUtils');
  12. define('BX_DOL_STUDIO_GRID_PARAMS_DIVIDER', '#-#');
  13. class BxDolStudioGrid extends BxTemplGrid {
  14. protected $sParamsDivider;
  15. public $oDb;
  16. public function __construct ($aOptions, $oTemplate = false) {
  17. parent::__construct ($aOptions, $oTemplate ? $oTemplate : BxDolStudioTemplate::getInstance());
  18. $this->oDb = null;
  19. $this->sParamsDivider = BX_DOL_STUDIO_GRID_PARAMS_DIVIDER;
  20. }
  21. public function getSystemName($sValue) {
  22. return BxDolStudioUtils::getSystemName($sValue);
  23. }
  24. public function getClassName($sValue) {
  25. return BxDolStudioUtils::getClassName($sValue);
  26. }
  27. protected function getModuleTitle($sName) {
  28. return BxDolStudioUtils::getModuleTitle($sName);
  29. }
  30. protected function getModules($bShowCustom = true, $bShowSystem = true) {
  31. return BxDolStudioUtils::getModules($bShowCustom, $bShowSystem);
  32. }
  33. protected function _isVisibleGrid ($a) {
  34. return isAdmin();
  35. }
  36. }
  37. /** @} */