Class humhub\modules\space\modules\manage\models\MembershipSearch

Inheritancehumhub\modules\space\modules\manage\models\MembershipSearch » humhub\modules\space\models\Membership » humhub\components\ActiveRecord » yii\db\ActiveRecord
ImplementsSerializable

Description of GroupSearch

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() humhub\modules\space\models\Membership
attributes() humhub\modules\space\modules\manage\models\MembershipSearch
beforeDelete() humhub\modules\space\models\Membership
beforeSave() humhub\components\ActiveRecord
countNewItems() Counts all new Items for this membership humhub\modules\space\models\Membership
findByUser() Returns an ActiveQuery selcting all memberships for the given $user. humhub\modules\space\models\Membership
getCreatedBy() Relation to User defined in created_by attribute humhub\components\ActiveRecord
getErrorMessage() Returns the errors as string for all attribute or a single attribute. humhub\components\ActiveRecord
getFileManager() Returns the file manager for this record humhub\components\ActiveRecord
getOriginator() humhub\modules\space\models\Membership
getRoles() humhub\modules\space\modules\manage\models\MembershipSearch
getSpace() humhub\modules\space\models\Membership
getSpaceMembersQuery() Returns a user query for space memberships humhub\modules\space\models\Membership
getUniqueId() Returns a unique id for this record/model humhub\components\ActiveRecord
getUpdatedBy() Relation to User defined in updated_by attribute humhub\components\ActiveRecord
getUser() humhub\modules\space\models\Membership
getUserSpaceIds() Returns a list of all spaces' ids of the given userId humhub\modules\space\models\Membership
getUserSpaceQuery() Returns Space for user space membership humhub\modules\space\models\Membership
getUserSpaces() Returns a list of all spaces of the given userId humhub\modules\space\models\Membership
isCurrentUser() Checks if the current logged in user is the related user of this membership record. humhub\modules\space\models\Membership
isMember() Determines if this membership is a full accepted membership. humhub\modules\space\models\Membership
rules() humhub\modules\space\modules\manage\models\MembershipSearch
scenarios() humhub\modules\space\modules\manage\models\MembershipSearch
search() Creates data provider instance with search query applied humhub\modules\space\modules\manage\models\MembershipSearch
serialize() Serializes attributes and oldAttributes of this record. humhub\components\ActiveRecord
tableName() humhub\modules\space\models\Membership
unserialize() Unserializes the given string, calls the init() function and sets the attributes and oldAttributes. humhub\components\ActiveRecord
updateLastVisit() Update last visit humhub\modules\space\models\Membership

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
STATUS_APPLICANT 2 humhub\modules\space\models\Membership
STATUS_INVITED 1 Status Codes humhub\modules\space\models\Membership
STATUS_MEMBER 3 humhub\modules\space\models\Membership
USER_SPACEIDS_CACHE_KEY 'userSpaceIds_' humhub\modules\space\models\Membership
USER_SPACES_CACHE_KEY 'userSpaces_' humhub\modules\space\models\Membership

Property Details

$freeText public property

The freetext search string

public string $freeText null
$roleId public property

The role id

public string $roleId null
$status public property

Status of members to display

public integer $status = \humhub\modules\space\models\Membership::STATUS_MEMBER

Method Details

attributes() public method

public void attributes ( )
getRoles() public static method

public static void getRoles ( humhub\modules\space\models\Space $space )
$space
rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
search() public method

Creates data provider instance with search query applied

public \yii\data\ActiveDataProvider search ( $params )
$params array