BxBaseModGeneralConfig.php 1.5 KB

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