BxBaseModProfileConfig.php 1.3 KB

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 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->CNF = array(
  19. 'PARAM_MULTICAT_ENABLED' => false,
  20. );
  21. $this->_aMenuItems2MethodsActions = array (
  22. 'profile-friend-add' => 'checkAllowedFriendAdd',
  23. 'profile-friend-remove' => 'checkAllowedFriendRemove',
  24. 'profile-relation-add' => 'checkAllowedRelationAdd',
  25. 'profile-relation-remove' => 'checkAllowedRelationRemove',
  26. 'profile-subscribe-add' => 'checkAllowedSubscribeAdd',
  27. 'profile-subscribe-remove' => 'checkAllowedSubscribeRemove',
  28. 'profile-actions-more' => 'checkAllowedViewMoreMenu',
  29. 'profile-set-acl-level' => 'checkAllowedSetMembership',
  30. 'convos-compose' => 'checkAllowedCompose',
  31. 'messenger' => 'checkAllowedCompose',
  32. );
  33. }
  34. }
  35. /** @} */