ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (private readonly UIFactory $ui_factory, private readonly UIRenderer $ui_renderer, private readonly SystemLanguage $lng, private readonly Refinery $refinery, private readonly \ilGlobalTemplateInterface $tpl, private readonly HTTPService $http, private readonly \ilCtrl $ctrl, private Translations $translations, private readonly ObjectProperties $object_properties, URI $here_uri) | |
runAction () | |
getTable () | |
getRows (DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters) | |
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e.g. More... | |
getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More... | |
Data Fields | |
const | ACTION_EDIT = 'e' |
const | ACTION_MAKE_DEFAULT = 'md' |
const | ACTION_DELETE = 'd' |
Private Member Functions | |
getColumns () | |
getActions () | |
editTranslation () | |
makeDefault () | |
deleteTranslations () | |
buildEditLanguageModal (string $language_code) | |
buildConfirmationModal (array $languages_to_delete) | |
retrieveAffectedItemsFromQueryForDeletion () | |
retrieveAffectedItemsFromQuery () | |
sendAsync (UIComponent $response) | |
Private Attributes | |
const | QUERY_PARAMETER_NAME_SPACE = ['obj', 'trans'] |
const | TOKEN_STRING_ACTION = 'a' |
const | TOKEN_STRING_ROW_ID = 't' |
const | TOKEN_STRING_ACTON_AFFECTED_ITEMS = 'ai' |
URLBuilder | $url_builder |
URLBuilderToken | $token_action |
URLBuilderToken | $token_action_affected_items |
URLBuilderToken | $token_row_id |
RoundtripModal | $modal_with_error = null |
Definition at line 42 of file TranslationsTable.php.
ILIAS\ILIASObject\Properties\Translations\TranslationsTable::__construct | ( | private readonly UIFactory | $ui_factory, |
private readonly UIRenderer | $ui_renderer, | ||
private readonly SystemLanguage | $lng, | ||
private readonly Refinery | $refinery, | ||
private readonly \ilGlobalTemplateInterface | $tpl, | ||
private readonly HTTPService | $http, | ||
private readonly \ilCtrl | $ctrl, | ||
private Translations | $translations, | ||
private readonly ObjectProperties | $object_properties, | ||
URI | $here_uri | ||
) |
array<ILIAS |
Definition at line 63 of file TranslationsTable.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationsTable\$token_action, ILIAS\ILIASObject\Properties\Translations\TranslationsTable\$token_action_affected_items, ILIAS\ILIASObject\Properties\Translations\TranslationsTable\$token_row_id, and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\$url_builder.
|
private |
Definition at line 306 of file TranslationsTable.php.
References ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\deleteTranslations().
|
private |
Definition at line 287 of file TranslationsTable.php.
References ILIAS\UI\examples\Layout\Page\Standard\$refinery, ILIAS\Repository\lng(), and null.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\editTranslation().
|
private |
Definition at line 253 of file TranslationsTable.php.
References $c, ILIAS\ILIASObject\Properties\Translations\TranslationsTable\buildConfirmationModal(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQueryForDeletion(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\sendAsync(), and ILIAS\ILIASObject\Properties\Translations\Translations\withoutLanguage().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\runAction().
|
private |
Definition at line 206 of file TranslationsTable.php.
References $data, ILIAS\ILIASObject\Properties\Translations\TranslationsTable\buildEditLanguageModal(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), null, ILIAS\Repository\refinery(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQuery(), and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\sendAsync().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\runAction().
|
private |
Definition at line 173 of file TranslationsTable.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationsTable\$token_row_id, and ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\getTable().
|
private |
Definition at line 147 of file TranslationsTable.php.
References ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\getTable().
ILIAS\ILIASObject\Properties\Translations\TranslationsTable::getRows | ( | DataRowBuilder | $row_builder, |
array | $visible_column_ids, | ||
Range | $range, | ||
Order | $order, | ||
?array | $filter_data, | ||
?array | $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 126 of file TranslationsTable.php.
References ILIAS\Repository\lng().
ILIAS\ILIASObject\Properties\Translations\TranslationsTable::getTable | ( | ) |
Definition at line 109 of file TranslationsTable.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationsTable\$modal_with_error, ILIAS\ILIASObject\Properties\Translations\TranslationsTable\getActions(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\getColumns(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and null.
ILIAS\ILIASObject\Properties\Translations\TranslationsTable::getTotalRowCount | ( | ?array | $filter_data, |
?array | $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 139 of file TranslationsTable.php.
|
private |
Definition at line 243 of file TranslationsTable.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQuery().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\runAction().
|
private |
Definition at line 338 of file TranslationsTable.php.
References ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\sendAsync().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\editTranslation(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\makeDefault(), and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQueryForDeletion().
|
private |
Definition at line 324 of file TranslationsTable.php.
References ILIAS\Repository\lng(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQuery(), and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\sendAsync().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\deleteTranslations().
ILIAS\ILIASObject\Properties\Translations\TranslationsTable::runAction | ( | ) |
Definition at line 88 of file TranslationsTable.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationsTable\deleteTranslations(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\editTranslation(), ILIAS\FileDelivery\http(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\makeDefault(), and ILIAS\Repository\refinery().
|
private |
Definition at line 365 of file TranslationsTable.php.
References ILIAS\FileDelivery\http(), and ILIAS\Filesystem\Stream\Streams\ofString().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\deleteTranslations(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\editTranslation(), ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQuery(), and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\retrieveAffectedItemsFromQueryForDeletion().
|
private |
Definition at line 58 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\getTable().
|
private |
Definition at line 54 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\__construct().
|
private |
Definition at line 55 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\__construct().
|
private |
Definition at line 56 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\__construct(), and ILIAS\ILIASObject\Properties\Translations\TranslationsTable\getActions().
|
private |
Definition at line 53 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\__construct().
const ILIAS\ILIASObject\Properties\Translations\TranslationsTable::ACTION_DELETE = 'd' |
Definition at line 51 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\Language\toRow().
const ILIAS\ILIASObject\Properties\Translations\TranslationsTable::ACTION_EDIT = 'e' |
Definition at line 49 of file TranslationsTable.php.
const ILIAS\ILIASObject\Properties\Translations\TranslationsTable::ACTION_MAKE_DEFAULT = 'md' |
Definition at line 50 of file TranslationsTable.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\Language\toRow().
|
private |
Definition at line 44 of file TranslationsTable.php.
|
private |
Definition at line 45 of file TranslationsTable.php.
|
private |
Definition at line 47 of file TranslationsTable.php.
|
private |
Definition at line 46 of file TranslationsTable.php.