Interface lispa\amos\community\models\CommunityContextInterface
Interface CommunityContextInterface
Public Methods
Method | Description | Defined By |
---|---|---|
getAdditionalAssociationTargetQuery() | Active query to search the users to associate in the additional association page | lispa\amos\community\models\CommunityContextInterface |
getBaseRole() | The name of the basic member role | lispa\amos\community\models\CommunityContextInterface |
getCommunityModel() | The community created by the context model (community related to project-management, events or a community itself) | lispa\amos\community\models\CommunityContextInterface |
getContextRoles() | Array containing the possible roles of a community Member | lispa\amos\community\models\CommunityContextInterface |
getManagerRole() | The name of the greatest role a member can have | lispa\amos\community\models\CommunityContextInterface |
getNextRole() | Array containing the next level for a given initial role | lispa\amos\community\models\CommunityContextInterface |
getPluginController() | For m2m widget actions: return the plugin controller name to construct redirect URL | lispa\amos\community\models\CommunityContextInterface |
getPluginModule() | For m2m widget actions: return the plugin module name to construct redirect URL | lispa\amos\community\models\CommunityContextInterface |
getRedirectAction() | For m2m widget actions: return the controller action name to construct redirect URL | lispa\amos\community\models\CommunityContextInterface |
getRolePermissions() | Array containing user permission for a given role | lispa\amos\community\models\CommunityContextInterface |
Method Details
Active query to search the users to associate in the additional association page
public abstract yii\db\ActiveQuery getAdditionalAssociationTargetQuery ( $communityId ) | ||
$communityId | integer | Id of the community created by the context model |
The name of the basic member role
public abstract string getBaseRole ( ) |
The community created by the context model (community related to project-management, events or a community itself)
public abstract lispa\amos\community\models\Community getCommunityModel ( ) |
Array containing the possible roles of a community Member
public abstract array getContextRoles ( ) |
The name of the greatest role a member can have
public abstract string getManagerRole ( ) |
Array containing the next level for a given initial role
public abstract string getNextRole ( $role ) | ||
$role | string |
For m2m widget actions: return the plugin controller name to construct redirect URL
public abstract string getPluginController ( ) |
For m2m widget actions: return the plugin module name to construct redirect URL
public abstract string getPluginModule ( ) |
For m2m widget actions: return the controller action name to construct redirect URL
public abstract string getRedirectAction ( ) |
Array containing user permission for a given role
public abstract array getRolePermissions ( $role ) | ||
$role | string |