Class humhub\modules\space\components\ActiveQuerySpace

Inheritancehumhub\modules\space\components\ActiveQuerySpace » yii\db\ActiveQuery
Available since version1.4

ActiveQuerySpace is used to query Space records.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
search() Performs a space full text search humhub\modules\space\components\ActiveQuerySpace
visible() Only returns spaces which are visible for this user humhub\modules\space\components\ActiveQuerySpace

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
MAX_SEARCH_NEEDLES 5 humhub\modules\space\components\ActiveQuerySpace

Method Details

search() public method

Performs a space full text search

public humhub\modules\space\components\ActiveQuerySpace search ( $keywords )
$keywords string|array
return humhub\modules\space\components\ActiveQuerySpace

The query

visible() public method

Only returns spaces which are visible for this user

public humhub\modules\space\components\ActiveQuerySpace visible ( humhub\modules\user\models\User $user null )
$user humhub\modules\user\models\User|null
return humhub\modules\space\components\ActiveQuerySpace

The query