/** * Returns an user list which are space members */ public function actionMembersList() { $title = Yii::t('SpaceModule.controllers_MembershipController', "<strong>Members</strong>"); return $this->renderAjaxContent(UserListBox::widget(['query' => Membership::getSpaceMembersQuery($this->getSpace()), 'title' => $title])); }
/** * @inheritdoc */ public function run() { $query = \humhub\modules\space\models\Membership::getSpaceMembersQuery($this->space); $query->limit($this->maxMembers); return $this->render('members', ['space' => $this->space, 'maxMembers' => $this->maxMembers, 'users' => $query->all()]); }