BxDolStudioGrid.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php defined('BX_DOL') or die('hack attempt');
  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. bx_import('BxTemplGrid');
  10. bx_import('BxDolStudioUtils');
  11. define('BX_DOL_STUDIO_GRID_PARAMS_DIVIDER', '#-#');
  12. class BxDolStudioGrid extends BxTemplGrid {
  13. protected $sParamsDivider;
  14. public $oDb;
  15. public function __construct ($aOptions, $oTemplate = false) {
  16. parent::__construct ($aOptions, $oTemplate ? $oTemplate : BxDolStudioTemplate::getInstance());
  17. $this->oDb = null;
  18. $this->sParamsDivider = BX_DOL_STUDIO_GRID_PARAMS_DIVIDER;
  19. }
  20. public function getSystemName($sValue) {
  21. return BxDolStudioUtils::getSystemName($sValue);
  22. }
  23. public function getClassName($sValue) {
  24. return BxDolStudioUtils::getClassName($sValue);
  25. }
  26. protected function getModuleTitle($sName) {
  27. return BxDolStudioUtils::getModuleTitle($sName);
  28. }
  29. protected function getModules($bShowCustom = true, $bShowSystem = true) {
  30. return BxDolStudioUtils::getModules($bShowCustom, $bShowSystem);
  31. }
  32. protected function _isVisibleGrid ($a) {
  33. return isAdmin();
  34. }
  35. }
  36. /** @} */