1
0

BxDolStudioGrid.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. {
  14. protected $sParamsDivider;
  15. public $oDb;
  16. public function __construct ($aOptions, $oTemplate = false)
  17. {
  18. parent::__construct ($aOptions, $oTemplate ? $oTemplate : BxDolStudioTemplate::getInstance());
  19. $this->oDb = null;
  20. $this->sParamsDivider = BX_DOL_STUDIO_GRID_PARAMS_DIVIDER;
  21. }
  22. public function getSystemName($sValue)
  23. {
  24. return BxDolStudioUtils::getSystemName($sValue);
  25. }
  26. public function getClassName($sValue)
  27. {
  28. return BxDolStudioUtils::getClassName($sValue);
  29. }
  30. protected function getModuleTitle($sName)
  31. {
  32. return BxDolStudioUtils::getModuleTitle($sName);
  33. }
  34. protected function getModules($bShowCustom = true, $bShowSystem = true)
  35. {
  36. return BxDolStudioUtils::getModules($bShowCustom, $bShowSystem);
  37. }
  38. protected function _isVisibleGrid ($a)
  39. {
  40. return isAdmin();
  41. }
  42. }
  43. /** @} */