BxMarketMenuSnippetMeta.php 831 B

123456789101112131415161718192021222324252627282930313233
  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 Market Market
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxMarketMenuSnippetMeta extends BxBaseModTextMenuSnippetMeta
  12. {
  13. public function __construct($aObject, $oTemplate = false)
  14. {
  15. $this->_sModule = 'bx_market';
  16. parent::__construct($aObject, $oTemplate);
  17. }
  18. protected function _getMenuItemAuthor($aItem)
  19. {
  20. $CNF = &$this->_oModule->_oConfig->CNF;
  21. $oProfile = BxDolProfile::getInstance($this->_aContentInfo[$CNF['FIELD_AUTHOR']]);
  22. if(!$oProfile)
  23. $oProfile = BxDolProfileUndefined::getInstance();
  24. return $this->getUnitMetaItemText($oProfile->getDisplayName());
  25. }
  26. }
  27. /** @} */