ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilLTIConsumerProviderTableGUI Class Reference
+ Inheritance diagram for ilLTIConsumerProviderTableGUI:
+ Collaboration diagram for ilLTIConsumerProviderTableGUI:

Public Member Functions

 __construct (?object $a_parent_obj, ?string $a_parent_cmd)
 
 enableAcceptProviderAsGlobal ()
 
 enableResetProviderToUserScope ()
 
 enableSelectProviderForm ()
 
 getRows (DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
 
 getTotalRowCount (mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
 Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More...
 
 setData (array $data)
 
 getHTML (bool $hasWriteAccess=false)
 
 getFilter ()
 
 getRows (DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
 This is called by the table to retrieve rows; map data-records to rows using the $row_builder e.g. More...
 
 getTotalRowCount (mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
 Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More...
 

Data Fields

object $parent_obj
 
string $parent_cmd
 

Protected Member Functions

 applyOrdering (array $records, Order $order, ?Range $range=null)
 
 getSortableValue (array $record, string $order_field)
 
 getHasOutcomeFormatted (bool $hasOutcome)
 
 getIsInternalFormatted (bool $isInternal)
 
 getIsWithKeyFormatted (bool $isWithKey)
 
 getCategoryTranslation (string $category)
 
 getAvailabilityLabel (array $data)
 
 getOwnProviderLabel (array $data)
 
 getProviderCreatorLabel (array $data)
 

Protected Attributes

ilLanguage $lng
 
Factory $ui_factory
 
ILIAS UI Renderer $ui_renderer
 
ilUIService $ui_service
 
ILIAS Data Factory $data_factory
 
ilCtrlInterface $ctrl
 
WrapperFactory $wrapper
 
ILIAS Refinery Factory $refinery
 

Private Member Functions

 getColumns ()
 
 getActions ()
 

Private Attributes

ServerRequestInterface RequestInterface $request
 
array $records
 
bool $acceptProviderAsGlobal = false
 
bool $resetProviderToUserScope = false
 
bool $selectProviderForm = false
 

Detailed Description

Definition at line 42 of file class.ilLTIConsumerProviderTableGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLTIConsumerProviderTableGUI::__construct ( ?object  $a_parent_obj,
?string  $a_parent_cmd 
)

Definition at line 60 of file class.ilLTIConsumerProviderTableGUI.php.

61 {
62 global $DIC;
63
64 $this->lng = $DIC->language();
65 $this->ui_factory = $DIC->ui()->factory();
66 $this->ui_renderer = $DIC->ui()->renderer();
67 $this->ui_service = $DIC->uiService();
68 $this->request = $DIC->http()->request();
69 $this->data_factory = new \ILIAS\Data\Factory();
70 $this->ctrl = $DIC->ctrl();
71 $this->wrapper = $DIC->http()->wrapper();
72 $this->refinery = $DIC->refinery();
73
74 $this->parent_obj = $a_parent_obj;
75 $this->parent_cmd = $a_parent_cmd;
76 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyOrdering()

ilLTIConsumerProviderTableGUI::applyOrdering ( array  $records,
Order  $order,
?Range  $range = null 
)
protected

Definition at line 147 of file class.ilLTIConsumerProviderTableGUI.php.

147 : array
148 {
149 [$order_field, $order_direction] = $order->join(
150 [],
151 fn($ret, $key, $value) => [$key, $value]
152 );
153
154 $order_field = (string) $order_field;
155 $sortable_records = array_map(function (array $record) use ($order_field): array {
156 return [
157 'sort_key' => $this->getSortableValue($record, $order_field),
158 'record' => $record,
159 ];
160 }, $records);
161
162 usort($sortable_records, static function (array $left, array $right): int {
163 return ilStr::strCmp($left['sort_key'], $right['sort_key']);
164 });
165
166 $records = array_column($sortable_records, 'record');
167
168 if ($order_direction === Order::DESC) {
169 $records = array_reverse($records);
170 }
171
172 if ($range !== null) {
173 $records = array_slice($records, $range->getStart(), $range->getLength());
174 }
175
176 return $records;
177 }
join($init, callable $fn)
Definition: Order.php:75
getSortableValue(array $record, string $order_field)
static strCmp(string $a, string $b)
Definition: class.ilStr.php:87

References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Data\Range\getLength(), ILIAS\Data\Range\getStart(), ILIAS\Data\Order\join(), and ilStr\strCmp().

+ Here is the call graph for this function:

◆ enableAcceptProviderAsGlobal()

ilLTIConsumerProviderTableGUI::enableAcceptProviderAsGlobal ( )

Definition at line 78 of file class.ilLTIConsumerProviderTableGUI.php.

78 : void
79 {
80 $this->acceptProviderAsGlobal = true;
81 }

◆ enableResetProviderToUserScope()

ilLTIConsumerProviderTableGUI::enableResetProviderToUserScope ( )

Definition at line 83 of file class.ilLTIConsumerProviderTableGUI.php.

83 : void
84 {
85 $this->resetProviderToUserScope = true;
86 }

◆ enableSelectProviderForm()

ilLTIConsumerProviderTableGUI::enableSelectProviderForm ( )

Definition at line 88 of file class.ilLTIConsumerProviderTableGUI.php.

88 : void
89 {
90 $this->selectProviderForm = true;
91 }

◆ getActions()

ilLTIConsumerProviderTableGUI::getActions ( )
private
Exceptions
ilCtrlException

Definition at line 233 of file class.ilLTIConsumerProviderTableGUI.php.

233 : array
234 {
235 $df = new \ILIAS\Data\Factory();
236 $here_uri = $df->uri($this->request->getUri()->__toString());
237 $url_builder = new URLBuilder($here_uri);
238
239 $query_params_namespace = ['provider', 'table'];
240 list($url_builder, $id_token, $action_token) = $url_builder->acquireParameters(
241 $query_params_namespace,
242 "provider_id",
243 "action"
244 );
245
246 $query = $this->wrapper->query();
247 if ($query->has($action_token->getName())) {
248 $action = $query->retrieve($action_token->getName(), $this->refinery->to()->string());
249 $ids = $query->retrieve($id_token->getName(), $this->refinery->custom()->transformation(fn($v) => $v));
250
251 switch ($action) {
252 case "edit":
253 $id = $ids[0] ?? null;
254 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $id);
255 $this->ctrl->redirect($this->parent_obj, ilLTIConsumerAdministrationGUI::CMD_SHOW_USER_PROVIDER_FORM);
256 break;
257 case "delete_global":
258 if (count($ids) > 1) {
259 $this->ctrl->setParameter($this->parent_obj, 'provider_ids', implode(",", $ids));
261 } else {
262 $id = $ids[0] ?? null;
263 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $id);
264 $this->ctrl->redirect($this->parent_obj, ilLTIConsumerAdministrationGUI::CMD_DELETE_GLOBAL_PROVIDER);
265 }
266 break;
267 case "delete_user":
268 if (count($ids) > 1) {
269 $this->ctrl->setParameter($this->parent_obj, 'provider_ids', implode(",", $ids));
270 $this->ctrl->redirect($this->parent_obj, ilLTIConsumerAdministrationGUI::CMD_DELETE_USER_PROVIDER_MULTI);
271 } else {
272 $id = $ids[0] ?? null;
273 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $id);
274 $this->ctrl->redirect($this->parent_obj, ilLTIConsumerAdministrationGUI::CMD_DELETE_USER_PROVIDER);
275 }
276 break;
277 case "global":
278 if (count($ids) > 1) {
279 $this->ctrl->setParameter($this->parent_obj, 'provider_ids', implode(",", $ids));
281 } else {
282 $id = $ids[0] ?? null;
283 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $id);
284 $this->ctrl->redirect($this->parent_obj, ilLTIConsumerAdministrationGUI::CMD_ACCEPT_PROVIDER_AS_GLOBAL);
285 }
286 break;
287 case "reset":
288 if (count($ids) > 1) {
289 $this->ctrl->setParameter($this->parent_obj, 'provider_ids', implode(",", $ids));
291 } else {
292 $id = $ids[0] ?? null;
293 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $id);
295 }
296 break;
297 }
298 }
299
300
301 $actions = [
302 "edit" => $this->ui_factory->table()->action()->single(
303 $this->lng->txt('lti_action_edit_provider'),
304 $url_builder->withParameter($action_token, "edit"),
305 $id_token
306 ),
307 ];
308
309 if ($this->acceptProviderAsGlobal) {
310 $actions["global"] = $this->ui_factory->table()->action()->standard(
311 $this->lng->txt('lti_action_accept_provider_as_global'),
312 $url_builder->withParameter($action_token, "global"),
313 $id_token
314 );
315 $actions["delete_user"] = $this->ui_factory->table()->action()->standard(
316 $this->lng->txt('lti_delete_provider'),
317 $url_builder->withParameter($action_token, "delete_user"),
318 $id_token
319 );
320 }
321
322 if ($this->resetProviderToUserScope) {
323 $actions["reset"] = $this->ui_factory->table()->action()->standard(
324 $this->lng->txt('lti_action_reset_provider_to_user_scope'),
325 $url_builder->withParameter($action_token, "reset"),
326 $id_token
327 );
328 $actions["delete_global"] = $this->ui_factory->table()->action()->standard(
329 $this->lng->txt('lti_delete_provider'),
330 $url_builder->withParameter($action_token, "delete_global"),
331 $id_token
332 );
333 }
334
335 return $actions;
336 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, ilLTIConsumerAdministrationGUI\CMD_ACCEPT_PROVIDER_AS_GLOBAL, ilLTIConsumerAdministrationGUI\CMD_ACCEPT_PROVIDER_AS_GLOBAL_MULTI, ilLTIConsumerAdministrationGUI\CMD_DELETE_GLOBAL_PROVIDER, ilLTIConsumerAdministrationGUI\CMD_DELETE_GLOBAL_PROVIDER_MULTI, ilLTIConsumerAdministrationGUI\CMD_DELETE_USER_PROVIDER, ilLTIConsumerAdministrationGUI\CMD_DELETE_USER_PROVIDER_MULTI, ilLTIConsumerAdministrationGUI\CMD_RESET_PROVIDER_TO_USER_SCOPE, ilLTIConsumerAdministrationGUI\CMD_RESET_PROVIDER_TO_USER_SCOPE_MULTI, ilLTIConsumerAdministrationGUI\CMD_SHOW_USER_PROVIDER_FORM, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getAvailabilityLabel()

ilLTIConsumerProviderTableGUI::getAvailabilityLabel ( array  $data)
protected

Definition at line 365 of file class.ilLTIConsumerProviderTableGUI.php.

365 : string
366 {
367 global $DIC;
368
369 return match ($data['availability']) {
370 ilLTIConsumeProvider::AVAILABILITY_CREATE => $DIC->language()->txt('lti_con_prov_availability_create'),
371 ilLTIConsumeProvider::AVAILABILITY_EXISTING => $DIC->language()->txt('lti_con_prov_availability_existing'),
372 ilLTIConsumeProvider::AVAILABILITY_NONE => $DIC->language()->txt('lti_con_prov_availability_non'),
373 default => '',
374 };
375 }

References $data, $DIC, ilLTIConsumeProvider\AVAILABILITY_CREATE, ilLTIConsumeProvider\AVAILABILITY_EXISTING, and ilLTIConsumeProvider\AVAILABILITY_NONE.

Referenced by getRows().

+ Here is the caller graph for this function:

◆ getCategoryTranslation()

ilLTIConsumerProviderTableGUI::getCategoryTranslation ( string  $category)
protected

Definition at line 359 of file class.ilLTIConsumerProviderTableGUI.php.

359 : string
360 {
362 return $categories[$category];
363 }

References ilLTIConsumeProvider\getCategoriesSelectOptions().

Referenced by getRows().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getColumns()

ilLTIConsumerProviderTableGUI::getColumns ( )
private

Definition at line 211 of file class.ilLTIConsumerProviderTableGUI.php.

211 : array
212 {
213 return [
214 'icon' => $this->ui_factory->table()->column()->statusIcon($this->lng->txt('icon')),
215 'title' => $this->ui_factory->table()->column()->link($this->lng->txt('title')),
216 'description' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_description')),
217 'category' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_category'))->withIsOptional(true),
218 'keywords' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_keywords')),
219 'outcome' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_outcome'))->withIsOptional(true),
220 'internal' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_internal'))->withIsOptional(true),
221 'with_key' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_with_key')),
222 'availability' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_availability')),
223 'own_provider' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_own_provider'))->withIsOptional(true),
224 'provider_creator' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_provider_creator'))->withIsOptional(true),
225 'usages_untrashed' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_usages_untrashed')),
226 'usages_trashed' => $this->ui_factory->table()->column()->text($this->lng->txt('tbl_lti_prov_usages_trashed'))->withIsOptional(true),
227 ];
228 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getFilter()

ilLTIConsumerProviderTableGUI::getFilter ( )
Exceptions
ilCtrlException

Definition at line 413 of file class.ilLTIConsumerProviderTableGUI.php.

413 : Filter
414 {
415 $filter_inputs = [
416 'title' => $this->ui_factory->input()->field()->text($this->lng->txt("title")),
417 'keywords' => $this->ui_factory->input()->field()->text($this->lng->txt("tbl_lti_prov_keywords")),
418 'outcome' => $this->ui_factory->input()->field()->select($this->lng->txt("tbl_lti_prov_outcome"), [
419 'yes' => $this->lng->txt('yes'),
420 'no' => $this->lng->txt('no'),
421 ]),
422 'internal' => $this->ui_factory->input()->field()->select($this->lng->txt("tbl_lti_prov_internal"), [
423 'yes' => $this->lng->txt('yes'),
424 'no' => $this->lng->txt('no'),
425 ]),
426 'with_key' => $this->ui_factory->input()->field()->select($this->lng->txt("tbl_lti_prov_with_key"), [
427 'yes' => $this->lng->txt('yes'),
428 'no' => $this->lng->txt('no'),
429 ]),
430 'category' => $this->ui_factory->input()->field()->select($this->lng->txt("tbl_lti_prov_category"), ilLTIConsumeProvider::getCategoriesSelectOptions()),
431 ];
432
433 $active = array_fill(0, count($filter_inputs), true);
434
435 return $this->ui_service->filter()->standard(
436 'lti_consumer_provider_table',
437 $this->ctrl->getLinkTarget($this->parent_obj, $this->parent_cmd),
438 $filter_inputs,
439 $active,
440 true
441 );
442 }

References ILIAS\Repository\ctrl(), ilLTIConsumeProvider\getCategoriesSelectOptions(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getHasOutcomeFormatted()

ilLTIConsumerProviderTableGUI::getHasOutcomeFormatted ( bool  $hasOutcome)
protected

Definition at line 338 of file class.ilLTIConsumerProviderTableGUI.php.

338 : string
339 {
340 global $DIC;
341
342 return $hasOutcome ? $DIC->language()->txt('yes') : '';
343 }

References $DIC.

Referenced by getRows().

+ Here is the caller graph for this function:

◆ getHTML()

ilLTIConsumerProviderTableGUI::getHTML ( bool  $hasWriteAccess = false)
Exceptions
ilCtrlException

Definition at line 196 of file class.ilLTIConsumerProviderTableGUI.php.

196 : string
197 {
198 $table = $this->ui_factory->table()
199 ->data($this, $this->lng->txt('tbl_provider_header'), $this->getColumns())
200 ->withOrder(new Order('title', Order::ASC))
201 ->withRange(new Range(0, 20))
202 ->withRequest($this->request);
203
204 if ($hasWriteAccess) {
205 $table = $table->withActions($this->getActions());
206 }
207
208 return $this->ui_renderer->render($table);
209 }
Both the subject and the direction need to be specified when expressing an order.
Definition: Order.php:29
A simple class to express a naive range of whole positive numbers.
Definition: Range.php:29

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getIsInternalFormatted()

ilLTIConsumerProviderTableGUI::getIsInternalFormatted ( bool  $isInternal)
protected

Definition at line 345 of file class.ilLTIConsumerProviderTableGUI.php.

345 : string
346 {
347 global $DIC;
348
349 return $isInternal ? $DIC->language()->txt('yes') : '';
350 }

References $DIC.

Referenced by getRows().

+ Here is the caller graph for this function:

◆ getIsWithKeyFormatted()

ilLTIConsumerProviderTableGUI::getIsWithKeyFormatted ( bool  $isWithKey)
protected

Definition at line 352 of file class.ilLTIConsumerProviderTableGUI.php.

352 : string
353 {
354 global $DIC;
355
356 return $isWithKey ? $DIC->language()->txt('yes') : '';
357 }

References $DIC.

Referenced by getRows().

+ Here is the caller graph for this function:

◆ getOwnProviderLabel()

ilLTIConsumerProviderTableGUI::getOwnProviderLabel ( array  $data)
protected

Definition at line 377 of file class.ilLTIConsumerProviderTableGUI.php.

377 : string
378 {
379 global $DIC;
380
381 if ($data['creator'] == $DIC->user()->getId()) {
382 return $DIC->language()->txt('yes');
383 }
384
385 return '';
386 }

References $data, and $DIC.

Referenced by getRows().

+ Here is the caller graph for this function:

◆ getProviderCreatorLabel()

ilLTIConsumerProviderTableGUI::getProviderCreatorLabel ( array  $data)
protected
Exceptions
ilObjectNotFoundException
ilDatabaseException

Definition at line 392 of file class.ilLTIConsumerProviderTableGUI.php.

392 : string
393 {
394 global $DIC;
395
396 if ($data['creator']) {
397 /* @var ilObjUser $user */
398 $user = ilObjectFactory::getInstanceByObjId($data['creator'], false);
399
400 if ($user) {
401 return $user->getFullname();
402 }
403
404 return $DIC->language()->txt('deleted_user');
405 }
406
407 return '';
408 }
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id

References $data, $DIC, and ilObjectFactory\getInstanceByObjId().

Referenced by getRows().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRows()

ilLTIConsumerProviderTableGUI::getRows ( DataRowBuilder  $row_builder,
array  $visible_column_ids,
Range  $range,
Order  $order,
mixed  $additional_viewcontrol_data,
mixed  $filter_data,
mixed  $additional_parameters 
)
Exceptions
ilObjectNotFoundException
ilCtrlException
ilDatabaseException

Implements ILIAS\UI\Component\Table\DataRetrieval.

Definition at line 98 of file class.ilLTIConsumerProviderTableGUI.php.

106 : Generator {
107 $records = $this->applyOrdering($this->records, $order, $range);
108 foreach ($records as $record) {
109 $record["icon"] = $record["icon"] ?? "lti";
110 $record["icon"] = $this->ui_factory->symbol()->icon()->standard($record["icon"], $record["icon"], IconAlias::SMALL);
111
112 if ($this->selectProviderForm) {
113 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $record['id']);
114 $record["title"] = $this->ui_factory->link()->standard($record['title'], $this->ctrl->getLinkTarget($this->parent_obj, "save"));
115 } else {
116 $this->ctrl->setParameter($this->parent_obj, 'provider_id', $record['id']);
117 $record["title"] = $this->ui_factory->link()->standard($record['title'], $this->ctrl->getLinkTarget($this->parent_obj, ilLTIConsumerAdministrationGUI::CMD_SHOW_GLOBAL_PROVIDER_FORM));
118 }
119
120 $record["category"] = $this->getCategoryTranslation($record['category']);
121
122 $record["outcome"] = $this->getHasOutcomeFormatted($record['outcome']);
123 $record["internal"] = $this->getIsInternalFormatted(!$record['external']);
124 $record["with_key"] = $this->getIsWithKeyFormatted(!$record['provider_key_customizable']);
125
126 $record["availability"] = $this->getAvailabilityLabel($record);
127 $record["own_provider"] = $this->getOwnProviderLabel($record);
128 $record["provider_creator"] = $this->getProviderCreatorLabel($record);
129
130 yield $row_builder->buildDataRow((string) $record["id"], $record);
131 }
132 }
applyOrdering(array $records, Order $order, ?Range $range=null)
buildDataRow(string $id, array $record)

References ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow(), ilLTIConsumerAdministrationGUI\CMD_SHOW_GLOBAL_PROVIDER_FORM, ILIAS\Repository\ctrl(), getAvailabilityLabel(), getCategoryTranslation(), getHasOutcomeFormatted(), getIsInternalFormatted(), getIsWithKeyFormatted(), getOwnProviderLabel(), and getProviderCreatorLabel().

+ Here is the call graph for this function:

◆ getSortableValue()

ilLTIConsumerProviderTableGUI::getSortableValue ( array  $record,
string  $order_field 
)
protected

Definition at line 179 of file class.ilLTIConsumerProviderTableGUI.php.

179 : string
180 {
181 return match ($order_field) {
182 'category' => $this->getCategoryTranslation((string) ($record['category'] ?? '')),
183 'outcome' => $this->getHasOutcomeFormatted((bool) ($record['outcome'] ?? false)),
184 'internal' => $this->getIsInternalFormatted(!(bool) ($record['external'] ?? false)),
185 'with_key' => $this->getIsWithKeyFormatted(!(bool) ($record['provider_key_customizable'] ?? false)),
186 'availability' => $this->getAvailabilityLabel($record),
187 'own_provider' => $this->getOwnProviderLabel($record),
188 'provider_creator' => $this->getProviderCreatorLabel($record),
189 default => (string) ($record[$order_field] ?? ''),
190 };
191 }

◆ getTotalRowCount()

ilLTIConsumerProviderTableGUI::getTotalRowCount ( mixed  $additional_viewcontrol_data,
mixed  $filter_data,
mixed  $additional_parameters 
)

Mainly for the purpose of pagination-support, it is important to know about the total number of records available.

Given the nature of a DataTable, which is, opposite to a PresentationTable, rather administrative than explorative, this information will increase user experience quite a bit. However, you may return null, if the call is to costly, but expect the View Control to look a little different in this case.

Make sure that potential filters or user restrictions are being applied to the count.

Implements ILIAS\UI\Component\Table\DataRetrieval.

Definition at line 134 of file class.ilLTIConsumerProviderTableGUI.php.

138 : ?int {
139 return count($this->records);
140 }

◆ setData()

ilLTIConsumerProviderTableGUI::setData ( array  $data)

Definition at line 142 of file class.ilLTIConsumerProviderTableGUI.php.

142 : void
143 {
144 $this->records = $data;
145 }

References $data.

Field Documentation

◆ $acceptProviderAsGlobal

bool ilLTIConsumerProviderTableGUI::$acceptProviderAsGlobal = false
private

Definition at line 56 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $ctrl

ilCtrlInterface ilLTIConsumerProviderTableGUI::$ctrl
protected

Definition at line 50 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $data_factory

ILIAS Data Factory ilLTIConsumerProviderTableGUI::$data_factory
protected

Definition at line 49 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $lng

ilLanguage ilLTIConsumerProviderTableGUI::$lng
protected

Definition at line 44 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $parent_cmd

string ilLTIConsumerProviderTableGUI::$parent_cmd

Definition at line 55 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $parent_obj

object ilLTIConsumerProviderTableGUI::$parent_obj

Definition at line 54 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $records

array ilLTIConsumerProviderTableGUI::$records
private

Definition at line 53 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $refinery

ILIAS Refinery Factory ilLTIConsumerProviderTableGUI::$refinery
protected

Definition at line 52 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $request

ServerRequestInterface RequestInterface ilLTIConsumerProviderTableGUI::$request
private

Definition at line 48 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $resetProviderToUserScope

bool ilLTIConsumerProviderTableGUI::$resetProviderToUserScope = false
private

Definition at line 57 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $selectProviderForm

bool ilLTIConsumerProviderTableGUI::$selectProviderForm = false
private

Definition at line 58 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $ui_factory

Factory ilLTIConsumerProviderTableGUI::$ui_factory
protected

Definition at line 45 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $ui_renderer

ILIAS UI Renderer ilLTIConsumerProviderTableGUI::$ui_renderer
protected

Definition at line 46 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $ui_service

ilUIService ilLTIConsumerProviderTableGUI::$ui_service
protected

Definition at line 47 of file class.ilLTIConsumerProviderTableGUI.php.

◆ $wrapper

WrapperFactory ilLTIConsumerProviderTableGUI::$wrapper
protected

Definition at line 51 of file class.ilLTIConsumerProviderTableGUI.php.


The documentation for this class was generated from the following file: