Class humhub\modules\space\helpers\MembershipHelper

Inheritancehumhub\modules\space\helpers\MembershipHelper
Available since version1.3

MembershipHelper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getOwnSpaces() Returns an array of spaces where the given user is owner. humhub\modules\space\helpers\MembershipHelper

Method Details

getOwnSpaces() public static method

Returns an array of spaces where the given user is owner.

public static humhub\modules\space\models\Space[] getOwnSpaces ( humhub\modules\user\models\User $user null, $useCache true )
$user humhub\modules\user\models\User|null

The user or null for current user

$useCache boolean

Use cached result if available

return humhub\modules\space\models\Space[]

The list of spaces