| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup Events Events
- * @ingroup UnaModules
- *
- * @{
- */
- /**
- * Entries user joined to.
- */
- class BxEventsPageEntriesInContext extends BxBaseModGroupsPageJoinedEntries
- {
- protected $MODULE;
- protected $_oModule;
-
- public function __construct($aObject, $oTemplate = false)
- {
- $this->MODULE = 'bx_events';
- $this->_oModule = BxDolModule::getInstance($this->MODULE);
-
- parent::__construct($aObject, $oTemplate);
- }
-
- public function getCode ()
- {
- $iProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
- if ($iProfileId) {
- if (!$this->_oModule->serviceIsEnableForContext($iProfileId)){
- $this->_oTemplate->displayPageNotFound();
- return;
- }
- }
-
- return parent::getCode();
- }
- }
- /** @} */
|