BxOrgsModule.php 910 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Organizations Organizations
  7. * @ingroup TridentModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Organizations profiles module.
  13. */
  14. class BxOrgsModule extends BxBaseModProfileModule
  15. {
  16. function __construct(&$aModule)
  17. {
  18. parent::__construct($aModule);
  19. }
  20. public function servicePrepareFields ($aFieldsProfile)
  21. {
  22. $aFieldsProfile['org_name'] = $aFieldsProfile['name'];
  23. $aFieldsProfile['org_desc'] = isset($aFieldsProfile['description']) ? $aFieldsProfile['description'] : '';
  24. unset($aFieldsProfile['name']);
  25. unset($aFieldsProfile['description']);
  26. return $aFieldsProfile;
  27. }
  28. public function serviceGetTimelineData()
  29. {
  30. return array();
  31. }
  32. }
  33. /** @} */