BxBaseModGeneralConfig.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 BaseGeneral Base classes for modules
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModuleConfig');
  12. class BxBaseModGeneralConfig extends BxDolModuleConfig
  13. {
  14. public $CNF;
  15. protected $_aPrefixes;
  16. protected $_aJsClass;
  17. protected $_aJsObjects;
  18. protected $_aGridObjects;
  19. function __construct($aModule)
  20. {
  21. parent::__construct($aModule);
  22. $this->_aPrefixes = array();
  23. $this->_aJsClass = array();
  24. $this->_aJsObjects = array();
  25. $this->_aGridObjects = array();
  26. }
  27. public function getPrefix($sType = '')
  28. {
  29. if(empty($sType))
  30. return $this->_aPrefixes;
  31. return isset($this->_aPrefixes[$sType]) ? $this->_aPrefixes[$sType] : '';
  32. }
  33. public function getJsClass($sType)
  34. {
  35. return isset($this->_aJsClass[$sType]) ? $this->_aJsClass[$sType] : '';
  36. }
  37. public function getJsObject($sType)
  38. {
  39. return isset($this->_aJsObjects[$sType]) ? $this->_aJsObjects[$sType] : '';
  40. }
  41. public function getGridObject($sType)
  42. {
  43. return isset($this->_aGridObjects[$sType]) ? $this->_aGridObjects[$sType] : '';
  44. }
  45. }
  46. /** @} */