BxBaseModTextPageBrowse.php 924 B

12345678910111213141516171819202122232425262728293031323334
  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 BaseText Base classes for text modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Browse entries pages.
  13. */
  14. class BxBaseModTextPageBrowse extends BxBaseModGeneralPageBrowse
  15. {
  16. public function __construct($aObject, $oTemplate = false)
  17. {
  18. parent::__construct($aObject, $oTemplate);
  19. $CNF = &$this->_oModule->_oConfig->CNF;
  20. if(!empty($CNF['OBJECT_CATEGORY']) && ($iCategory = bx_get('category')) !== false) {
  21. $iCategory = bx_process_input($iCategory, BX_DATA_INT);
  22. $this->addMarkers([
  23. 'category_id' => $iCategory,
  24. 'category_name' => BxDolCategory::getObjectInstance($CNF['OBJECT_CATEGORY'])->getCategoryTitle($iCategory),
  25. ]);
  26. }
  27. }
  28. }
  29. /** @} */