19 declare(strict_types=1);
59 $field_factory->group([
60 self::FNAME_OFFSET => $field_factory->hidden(),
61 self::FNAME_LIMIT => $field_factory->hidden(),
67 $this->internal_selection_signal = $signal_generator->
create();
68 $this->number_of_entries = self::NUMBER_OF_VISIBLE_SECTIONS;
73 return $this->
refinery->custom()->transformation(
74 function ($v):
Range {
78 list(self::FNAME_OFFSET => $offset, self::FNAME_LIMIT => $limit) =
array_map(
'intval', $v);
80 return $this->data_factory->range($offset, $limit);
87 return $this->
refinery->custom()->transformation(
88 function ($v):
Range {
89 list($offset, $limit) = $v->
unpack();
93 $current_page = floor($offset / $limit);
94 $offset = $current_page * $limit;
95 return $this->data_factory->range((
int)$offset, $limit);
107 $this->checkArgListElements(
'options', $options,
'int');
108 $clone = clone $this;
115 return $this->options ?? self::DEFAULT_LIMITS;
125 $clone = clone $this;
132 $clone = clone $this;
133 $clone->label = $label;
139 $clone = clone $this;
156 $clone = clone $this;
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
create(string $class='')
Create a signal, each created signal MUST have a unique ID.
__construct(Container $dic, ilPlugin $plugin)
A simple class to express a naive range of whole positive numbers.