BxPersonsModule.php 669 B

123456789101112131415161718192021222324252627282930
  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 Persons Persons
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Person profiles module.
  13. */
  14. class BxPersonsModule extends BxBaseModProfileModule
  15. {
  16. function __construct(&$aModule)
  17. {
  18. parent::__construct($aModule);
  19. $this->_aSearchableNamesExcept[] = $this->_oConfig->CNF['FIELD_AUTHOR'];
  20. }
  21. public function servicePrepareFields ($aFieldsProfile)
  22. {
  23. return parent::_servicePrepareFields($aFieldsProfile, array(), array('fullname' => 'name'));
  24. }
  25. }
  26. /** @} */