19 declare(strict_types=1);
46 $this->request = $http->request();
47 $this->data_factory =
new Data\Factory();
55 return $this->ui_factory
60 $this->
lng->txt(
'mail_members_of_mailing_list'),
61 $this->mailing_list->getTitle()
65 ->withId(self::class .
'_' . $this->mailing_list->getId())
67 ->withActions($actions)
68 ->withRequest($this->request);
77 'login' => $this->ui_factory
80 ->text($this->
lng->txt(
'login'))
81 ->withIsSortable(
true),
90 $query_params_namespace = [
'contact',
'mailinglist',
'members'];
92 $uri = $this->data_factory->uri(
93 ILIAS_HTTP_PATH .
'/' . $this->
ctrl->getLinkTargetByClass(
94 ilMailingListsGUI::class,
95 'handleMailingListMemberActions' 99 $url_builder =
new UI\URLBuilder($uri);
102 $action_parameter_token_copy,
104 ] = $url_builder->acquireParameters(
105 $query_params_namespace,
111 'confirmDeleteMembers' => $this->ui_factory->table()->action()->multi(
112 $this->
lng->txt(
'remove'),
113 $url_builder->withParameter($action_parameter_token_copy,
'confirmDeleteMembers'),
121 if ($this->records ===
null) {
124 $entries = $this->mailing_list->getAssignedEntries();
125 if ($entries !== []) {
126 $usr_ids =
array_map(
static fn(array $entry):
int => (
int) $entry[
'usr_id'], $entries);
129 foreach ($entries as $entry) {
130 $this->records[$i][
'a_id'] = $entry[
'a_id'];
131 $this->records[$i][
'user_id'] = $entry[
'usr_id'];
132 $this->records[$i][
'login'] = $names[$entry[
'usr_id']];
141 array $visible_column_ids,
145 ?array $additional_parameters
149 foreach ($records as $record) {
150 $row_id = (string) $record[
'a_id'];
151 yield $row_builder->buildDataRow($row_id, $record);
157 ?array $additional_parameters
161 return \count($this->records);
170 [$order_field, $order_direction] = $order->join([], fn($ret, $key, $value) => [$key, $value]);
193 return \array_slice($records, $range->getStart(), $range->getLength());
Interface Observer Contains several chained tasks and infos about them.
Both the subject and the direction need to be specified when expressing an order. ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
static stableSortArray(array $array, string $a_array_sortby, string $a_array_sortorder="asc", bool $a_numeric=false)
Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which ha...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A simple class to express a naive range of whole positive numbers.