|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ilMailTemplateTable:
Collaboration diagram for ilMailTemplateTable:Public Member Functions | |
| __construct (private readonly ServerRequestInterface $http_request, private readonly ilLanguage $lng, private readonly UIFactory $ui_factory, private readonly Uri $table_uri, private readonly ilMailTemplateService $service, private readonly bool $read_only=false,) | |
| getRows (ILIAS\UI\Component\Table\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... | |
| initRecords () | |
| getComponent () | |
| getContext (string $value, bool $default=false) | |
| 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... | |
| getActions (URLBuilder $url_builder, URLBuilderToken $action_parameter_token, URLBuilderToken $row_id_token) | |
| 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... | |
Protected Attributes | |
| array | $contexts = [] |
Private Member Functions | |
| getRecords (Range $range, Order $order) | |
| limitRecords (array $records, Range $range) | |
| orderRecords (array $records, Order $order) | |
| getColumns () | |
Private Attributes | |
| array | $records = null |
Definition at line 33 of file class.ilMailTemplateTable.php.
| ilMailTemplateTable::__construct | ( | private readonly ServerRequestInterface | $http_request, |
| private readonly ilLanguage | $lng, | ||
| private readonly UIFactory | $ui_factory, | ||
| private readonly Uri | $table_uri, | ||
| private readonly ilMailTemplateService | $service, | ||
| private readonly bool | $read_only = false |
||
| ) |
Definition at line 41 of file class.ilMailTemplateTable.php.
References ilMailTemplateContextService\getTemplateContexts().
Here is the call graph for this function:| ilMailTemplateTable::getActions | ( | URLBuilder | $url_builder, |
| URLBuilderToken | $action_parameter_token, | ||
| URLBuilderToken | $row_id_token | ||
| ) |
Definition at line 163 of file class.ilMailTemplateTable.php.
References ILIAS\Repository\lng(), and ILIAS\UI\URLBuilder\withParameter().
Here is the call graph for this function:
|
private |
Definition at line 240 of file class.ilMailTemplateTable.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilMailTemplateTable::getComponent | ( | ) |
Definition at line 90 of file class.ilMailTemplateTable.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilMailTemplateTable::getContext | ( | string | $value, |
| bool | $default = false |
||
| ) |
Definition at line 114 of file class.ilMailTemplateTable.php.
References ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), and ILIAS\Repository\lng().
Here is the call graph for this function:Definition at line 144 of file class.ilMailTemplateTable.php.
References ILIAS\UI\Implementation\Component\Table\$range.
| ilMailTemplateTable::getRows | ( | ILIAS\UI\Component\Table\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.
yield $row_builder->buildStandardRow($row_id, $record).
| string[] | $visible_column_ids |
Implements ILIAS\UI\Component\Table\DataRetrieval.
Definition at line 52 of file class.ilMailTemplateTable.php.
| ilMailTemplateTable::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 131 of file class.ilMailTemplateTable.php.
| ilMailTemplateTable::initRecords | ( | ) |
Definition at line 75 of file class.ilMailTemplateTable.php.
|
private |
| list<array{tpl_id | int, title: string, context: string, is_default: bool}> $records |
Definition at line 207 of file class.ilMailTemplateTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
Here is the call graph for this function:
|
private |
| list<array{tpl_id | int, title: string, context: string, is_default: bool}> $records |
Definition at line 216 of file class.ilMailTemplateTable.php.
References ILIAS\Data\Order\join(), and ilStr\strCmp().
Here is the call graph for this function:
|
protected |
Definition at line 36 of file class.ilMailTemplateTable.php.
|
private |
Definition at line 39 of file class.ilMailTemplateTable.php.