1
0

BxBaseModGeneralConfig.php 1.6 KB

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