| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup Ads Ads
- * @ingroup UnaModules
- *
- * @{
- */
- /**
- * View entry social actions menu
- */
- class BxAdsMenuViewActions extends BxBaseModTextMenuViewActions
- {
- public function __construct($aObject, $oTemplate = false)
- {
- $this->_sModule = 'bx_ads';
- parent::__construct($aObject, $oTemplate);
- }
- protected function _getMenuItemInterested($aItem)
- {
- return $this->_getMenuItemByNameActions($aItem);
- }
-
- protected function _getMenuItemEditAd($aItem)
- {
- return $this->_getMenuItemByNameActions($aItem);
- }
- protected function _getMenuItemDeleteAd($aItem)
- {
- return $this->_getMenuItemByNameActions($aItem);
- }
- protected function _getMenuItemReview($aItem, $aParams = array())
- {
- $CNF = &$this->_oModule->_oConfig->CNF;
- return parent::_getMenuItemComment($aItem, array_merge($aParams, array(
- 'object' => $CNF['OBJECT_REVIEWS']
- )));
- }
- }
- /** @} */
|