CNF = array( 'PARAM_MULTICAT_ENABLED' => false, ); $this->_aMenuItems2MethodsActions = array ( 'profile-friend-add' => 'checkAllowedFriendAdd', 'profile-friend-remove' => 'checkAllowedFriendRemove', 'profile-relation-add' => 'checkAllowedRelationAdd', 'profile-relation-remove' => 'checkAllowedRelationRemove', 'profile-subscribe-add' => 'checkAllowedSubscribeAdd', 'profile-subscribe-remove' => 'checkAllowedSubscribeRemove', 'profile-actions-more' => 'checkAllowedViewMoreMenu', 'profile-set-acl-level' => 'checkAllowedSetMembership', 'convos-compose' => 'checkAllowedCompose', 'messenger' => 'checkAllowedCompose', ); $this->_bRoles = false; $this->_aRoles = false; } public function isRoles() { if($this->_aRoles === false) $this->_initRoles(); return $this->_bRoles; } public function isMultiRoles() { return !empty($this->CNF['PARAM_MMODE']) && getParam($this->CNF['PARAM_MMODE']) == BX_BASE_MOD_GROUPS_MMODE_MULTI_ROLES; } public function getRoles() { if($this->_aRoles === false) $this->_initRoles(); return $this->_aRoles; } protected function _initRoles() { if(empty($this->CNF['OBJECT_PRE_LIST_ROLES'])) return; $this->_aRoles = BxDolFormQuery::getDataItems($this->CNF['OBJECT_PRE_LIST_ROLES']); $this->_bRoles = !empty($this->_aRoles) && is_array($this->_aRoles); } } /** @} */