19declare(strict_types=1);
39 protected string $search_type,
40 protected bool $has_add_role_action,
43 protected UIFactory $ui_factory,
56 $this->ui_factory->table()->column()->text($this->
lng->txt(
'title'))->withIsSortable(
true);
58 $this->ui_factory->table()->column()->number($this->
lng->txt(
'members'))->withIsSortable(
true);
62 $this->
lng->txt(
'grp_list_members'),
63 $url_builder->
withParameter($action_token, self::LIST_USERS_ACTION),
66 if ($this->has_add_role_action) {
68 $this->search_type ===
'role' ? $this->
lng->txt(
'add_role') : $this->
lng->txt(
'add_member_role'),
69 $url_builder->
withParameter($action_token, self::ADD_ROLE_ACTION),
74 return $this->ui_factory->table()->data(
75 $this->data_retrieval,
76 $this->
lng->txt(
'search_results'),
78 )->withId(
'rep_search_obj_' . $this->
user->getId())
79 ->withActions($actions)
80 ->withRequest($this->
http->request());
Builds a Color from either hex- or rgb values.
const string ADD_ROLE_ACTION
const string LIST_USERS_ACTION
const string MEMBER_COUNT_COLUMN
__construct(protected string $search_type, protected bool $has_add_role_action, protected ObjectDataRetrieval $data_retrieval, protected ilLanguage $lng, protected UIFactory $ui_factory, protected HTTP $http, protected ilObjUser $user)
const string TITLE_COLUMN
withParameter(URLBuilderToken $token, string|array $value)
Change an acquired parameter's value if the supplied token is valid.
This describes a Data Table.
readonly HttpService $http
static http()
Fetches the global http state from ILIAS.