BxStrmPageEntry.php 942 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Stream Stream
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Entry create/edit pages
  13. */
  14. class BxStrmPageEntry extends BxBaseModTextPageEntry
  15. {
  16. public function __construct($aObject, $oTemplate = false)
  17. {
  18. $this->MODULE = 'bx_stream';
  19. parent::__construct($aObject, $oTemplate);
  20. }
  21. protected function _isAvailablePage($a)
  22. {
  23. if(!$this->_aContentInfo || (!$this->_oModule->isEntryActive($this->_aContentInfo) && !getParam('bx_stream_always_accessible')))
  24. return false;
  25. return BxBaseModGeneralPageEntry::_isAvailablePage($a);
  26. }
  27. protected function _setSubmenu($aParams)
  28. {
  29. parent::_setSubmenu(array_merge($aParams, array(
  30. 'title' => '',
  31. 'icon' => ''
  32. )));
  33. }
  34. }
  35. /** @} */