BxEventsPageEntry.php 810 B

1234567891011121314151617181920212223242526272829303132333435
  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 Events Events
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Profile create/edit/delete pages.
  13. */
  14. class BxEventsPageEntry extends BxBaseModGroupsPageEntry
  15. {
  16. public function __construct($aObject, $oTemplate = false)
  17. {
  18. $this->MODULE = 'bx_events';
  19. parent::__construct($aObject, $oTemplate);
  20. }
  21. public function getCode ()
  22. {
  23. $sResult = parent::getCode();
  24. if(!empty($sResult))
  25. $sResult .= $this->_oModule->_oTemplate->getJsCode('entry');
  26. $this->_oModule->_oTemplate->addJs(['modules/base/groups/js/|entry.js', 'entry.js']);
  27. return $sResult;
  28. }
  29. }
  30. /** @} */