Interface lispa\amos\community\models\CommunityContextInterface

Implemented bylispa\amos\community\models\Community, lispa\amos\community\models\search\CommunitySearch, lispa\amos\events\models\Event, lispa\amos\events\models\search\EventSearch, lispa\amos\myactivities\basic\CommunityToValidate, lispa\amos\projectmanagement\models\Projects, lispa\amos\projectmanagement\models\search\ProjectsSearch

Interface CommunityContextInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

getAdditionalAssociationTargetQuery() public abstract method

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

getBaseRole() public abstract method

The name of the basic member role

public abstract string getBaseRole ( )
getCommunityModel() public abstract method

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 ( )
getContextRoles() public abstract method

Array containing the possible roles of a community Member

public abstract array getContextRoles ( )
getManagerRole() public abstract method

The name of the greatest role a member can have

public abstract string getManagerRole ( )
getNextRole() public abstract method

Array containing the next level for a given initial role

public abstract string getNextRole ( $role )
$role string
getPluginController() public abstract method

For m2m widget actions: return the plugin controller name to construct redirect URL

public abstract string getPluginController ( )
getPluginModule() public abstract method

For m2m widget actions: return the plugin module name to construct redirect URL

public abstract string getPluginModule ( )
getRedirectAction() public abstract method

For m2m widget actions: return the controller action name to construct redirect URL

public abstract string getRedirectAction ( )
getRolePermissions() public abstract method

Array containing user permission for a given role

public abstract array getRolePermissions ( $role )
$role string