BxDevConfig.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <? 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 Developer Developer
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModuleConfig');
  12. class BxDevConfig extends BxDolModuleConfig
  13. {
  14. protected $aJsClasses;
  15. protected $aJsObjects;
  16. protected $sAnimationEffect;
  17. protected $iAnimationSpeed;
  18. function BxDevConfig($aModule)
  19. {
  20. parent::BxDolModuleConfig($aModule);
  21. $this->aJsClasses = array('polyglot' => 'BxDevPolyglot');
  22. $this->aJsObjects = array('polyglot' => 'oBxDevPolyglot');
  23. $this->sAnimationEffect = 'fade';
  24. $this->iAnimationSpeed = 'slow';
  25. }
  26. function getJsClass($sType = 'main')
  27. {
  28. if(empty($sType))
  29. return $this->aJsClasses;
  30. return $this->aJsClasses[$sType];
  31. }
  32. function getJsObject($sType = 'main')
  33. {
  34. if(empty($sType))
  35. return $this->aJsObjects;
  36. return $this->aJsObjects[$sType];
  37. }
  38. function getAnimationEffect()
  39. {
  40. return $this->sAnimationEffect;
  41. }
  42. function getAnimationSpeed()
  43. {
  44. return $this->iAnimationSpeed;
  45. }
  46. }
  47. /** @} */