BxReputationModule.php 816 B

1234567891011121314151617181920212223242526272829303132333435
  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. }
  30. /** @} */