BxBaseModProfileConfig.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 BaseProfile Base classes for profile modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxBaseModProfileConfig extends BxBaseModGeneralConfig
  12. {
  13. protected $_aMenuItems2MethodsActions = array();
  14. protected $_aMenuItems2MethodsSubmenu = array();
  15. function __construct($aModule)
  16. {
  17. parent::__construct($aModule);
  18. $this->_aMenuItems2MethodsActions = array (
  19. 'profile-friend-add' => 'checkAllowedFriendAdd',
  20. 'profile-friend-remove' => 'checkAllowedFriendRemove',
  21. 'profile-relation-add' => 'checkAllowedRelationAdd',
  22. 'profile-relation-remove' => 'checkAllowedRelationRemove',
  23. 'profile-subscribe-add' => 'checkAllowedSubscribeAdd',
  24. 'profile-subscribe-remove' => 'checkAllowedSubscribeRemove',
  25. 'profile-actions-more' => 'checkAllowedViewMoreMenu',
  26. 'profile-set-acl-level' => 'checkAllowedSetMembership',
  27. 'convos-compose' => 'checkAllowedContact',
  28. 'messenger' => 'checkAllowedContact',
  29. );
  30. }
  31. }
  32. /** @} */