BxBaseCmtsServices.php 702 B

123456789101112131415161718192021222324252627282930
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup DolphinCore Dolphin Core
  7. * @{
  8. */
  9. /**
  10. * System services related to Comments.
  11. */
  12. class BxBaseCmtsServices extends BxDol {
  13. public function __construct() {
  14. parent::__construct();
  15. }
  16. public function serviceGetMenuItemAddonVote($sSystem, $iId, $iCmtId) {
  17. bx_import('BxDolCmts');
  18. $oCmts = BxDolCmts::getObjectInstance($sSystem, $iId);
  19. $oVote = $oCmts->getVoteObject($iCmtId);
  20. if($oVote !== false)
  21. return $oVote->getCounter();
  22. return '';
  23. }
  24. }
  25. /** @} */