1
0

BxGlsrModule.php 1016 B

123456789101112131415161718192021222324252627282930313233343536
  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 Glossary Glossary
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Glossary module
  13. */
  14. class BxGlsrModule extends BxBaseModTextModule
  15. {
  16. function __construct(&$aModule)
  17. {
  18. parent::__construct($aModule);
  19. }
  20. /**
  21. * Display terms by Alphabetical index
  22. * @return HTML string
  23. */
  24. public function serviceBrowseAlphabetical ($sUnitView = false, $bEmptyMessage = true, $bAjaxPaginate = true)
  25. {
  26. $aIndexData = $this->_oDb->getAlphabeticalIndex();
  27. $aTmp = $this->_serviceBrowse('alphabetical', $sUnitView ? array('unit_view' => $sUnitView) : false, BX_DB_PADDING_DEF, $bEmptyMessage, $bAjaxPaginate);
  28. $sRv = $this->_oTemplate->getAlphabeticalList($aIndexData, $aTmp['content']);
  29. $aTmp['content'] = $sRv;
  30. return $aTmp;
  31. }
  32. }
  33. /** @} */