BxReputationModule.php 956 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Reputation Reputation
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxReputationModule extends BxBaseModNotificationsModule
  12. {
  13. public function __construct($aModule)
  14. {
  15. parent::__construct($aModule);
  16. $this->_oConfig->init($this->_oDb);
  17. }
  18. /**
  19. * SERVICE METHODS
  20. */
  21. public function serviceGetBlockSummary($iProfileId = 0)
  22. {
  23. if(!$iProfileId && ($iLoggedId = bx_get_logged_profile_id()))
  24. $iProfileId = $iLoggedId;
  25. if(!$iProfileId)
  26. return false;
  27. return $this->_oTemplate->getBlockSummary($iProfileId);
  28. }
  29. public function serviceGetBlockLeaderboard($iDays = 0)
  30. {
  31. return $this->_oTemplate->getBlockLeaderboard($iDays);
  32. }
  33. }
  34. /** @} */