BxAdsMenuViewActions.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 Ads Ads
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * View entry social actions menu
  13. */
  14. class BxAdsMenuViewActions extends BxBaseModTextMenuViewActions
  15. {
  16. public function __construct($aObject, $oTemplate = false)
  17. {
  18. $this->_sModule = 'bx_ads';
  19. parent::__construct($aObject, $oTemplate);
  20. }
  21. protected function _getMenuItemInterested($aItem)
  22. {
  23. return $this->_getMenuItemByNameActions($aItem);
  24. }
  25. protected function _getMenuItemEditAd($aItem)
  26. {
  27. return $this->_getMenuItemByNameActions($aItem);
  28. }
  29. protected function _getMenuItemDeleteAd($aItem)
  30. {
  31. return $this->_getMenuItemByNameActions($aItem);
  32. }
  33. protected function _getMenuItemReview($aItem, $aParams = array())
  34. {
  35. $CNF = &$this->_oModule->_oConfig->CNF;
  36. return parent::_getMenuItemComment($aItem, array_merge($aParams, array(
  37. 'object' => $CNF['OBJECT_REVIEWS']
  38. )));
  39. }
  40. }
  41. /** @} */