BxDolStudioGrid.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaStudio UNA Studio
  7. * @{
  8. */
  9. define('BX_DOL_STUDIO_GRID_PARAMS_DIVIDER', '#-#');
  10. class BxDolStudioGrid extends BxTemplGrid
  11. {
  12. protected $sParamsDivider;
  13. public $oDb;
  14. public function __construct ($aOptions, $oTemplate = false)
  15. {
  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. {
  22. return BxDolStudioUtils::getSystemName($sValue);
  23. }
  24. public function getClassName($sValue)
  25. {
  26. return BxDolStudioUtils::getClassName($sValue);
  27. }
  28. protected function getModuleTitle($sName)
  29. {
  30. return BxDolStudioUtils::getModuleTitle($sName);
  31. }
  32. protected function getModules($bShowCustom = true, $bShowSystem = true)
  33. {
  34. return BxDolStudioUtils::getModules($bShowCustom, $bShowSystem);
  35. }
  36. protected function _isVisibleGrid ($a)
  37. {
  38. return isAdmin();
  39. }
  40. }
  41. /** @} */