| 123456789101112131415161718192021222324252627282930313233 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup Market Market
- * @ingroup UnaModules
- *
- * @{
- */
- class BxMarketMenuSnippetMeta extends BxBaseModTextMenuSnippetMeta
- {
- public function __construct($aObject, $oTemplate = false)
- {
- $this->_sModule = 'bx_market';
- parent::__construct($aObject, $oTemplate);
- }
- protected function _getMenuItemAuthor($aItem)
- {
- $CNF = &$this->_oModule->_oConfig->CNF;
- $oProfile = BxDolProfile::getInstance($this->_aContentInfo[$CNF['FIELD_AUTHOR']]);
- if(!$oProfile)
- $oProfile = BxDolProfileUndefined::getInstance();
- return $this->getUnitMetaItemText($oProfile->getDisplayName());
- }
- }
- /** @} */
|