Class humhub\modules\user\widgets\UserListBox

Inheritancehumhub\modules\user\widgets\UserListBox » yii\base\Widget

UserListBox returns the content of the user list modal

Example Action:

public actionUserList() {
      $query = User::find();

      $title = "Some Users";

      return $this->renderAjaxContent(UserListBox::widget(['query' => $query, 'title' => $title]));

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$pageSize integer Displayed users per page humhub\modules\user\widgets\UserListBox
$query \yii\db\ActiveQuery humhub\modules\user\widgets\UserListBox
$title string Title of the box (not html encoded!) humhub\modules\user\widgets\UserListBox

Property Details

$pageSize public property

Displayed users per page

public integer $pageSize null
$query public property
public \yii\db\ActiveQuery $query null
$title public property

Title of the box (not html encoded!)

public string $title 'Users'

Method Details

init() public method

public void init ( )
run() public method

public void run ( )