|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ILIAS\ObjectGroup\Objects\Table\ObjectsTable:
Collaboration diagram for ILIAS\ObjectGroup\Objects\Table\ObjectsTable:Public Member Functions | |
| __construct (private readonly ilCtrlInterface $ctrl, private readonly ilLanguage $lng, private readonly ilGlobalTemplateInterface $tpl, private readonly UIFactory $ui_factory, private readonly UIRenderer $ui_renderer, private readonly HttpServices $http, private readonly Refinery $refinery, private readonly int $object_group_ref_id, private readonly int $object_group_obj_id,) | |
| getComponent (URLBuilder $url_builder) | |
| getComponents (URLBuilder $url_builder) | |
| execute (URLBuilder $url_builder) | |
| 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... | |
| 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... | |
| 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 | |
| const string | ID = 'obgr_objects' |
| const string | ROW_ID_PARAMETER = 'object_ref_id' |
| const string | ACTION_PARAMETER = 'action' |
| const string | ACTION_ASSIGN = 'assign' |
| const string | ACTION_UNASSIGN = 'unassign' |
| const string | LIST_MATERIALS_COMMAND = 'listMaterials' |
Private Member Functions | |
| getColumns () | |
| getActions (URLBuilder $url_builder) | |
| acquireParameters (URLBuilder $url_builder) | |
| loadRecords () | |
| buildTitleCell (array $record) | |
| buildOtherAssignmentLinks (array $other_object_groups) | |
| sortRecords (Order $order, array $records) | |
| limitRecords (Range $range, array $records) | |
| assignItems (array $selected_ref_ids) | |
| unassignItems (array $selected_ref_ids) | |
| resolveSelectedRefIds (string $key) | |
| resolveParameter (string $key) | |
| resolveRawParameter (string $key) | |
| isAllObjectsSelection (mixed $value) | |
| getAssignableRefIds () | |
Private Attributes | |
| const string | ALL_OBJECTS = 'ALL_OBJECTS' |
| readonly ilObjectGroupItems | $object_group_items |
| array | $records = null |
Definition at line 45 of file ObjectsTable.php.
| ILIAS\ObjectGroup\Objects\Table\ObjectsTable::__construct | ( | private readonly ilCtrlInterface | $ctrl, |
| private readonly ilLanguage | $lng, | ||
| private readonly ilGlobalTemplateInterface | $tpl, | ||
| private readonly UIFactory | $ui_factory, | ||
| private readonly UIRenderer | $ui_renderer, | ||
| private readonly HttpServices | $http, | ||
| private readonly Refinery | $refinery, | ||
| private readonly int | $object_group_ref_id, | ||
| private readonly int | $object_group_obj_id | ||
| ) |
Definition at line 68 of file ObjectsTable.php.
|
private |
Definition at line 248 of file ObjectsTable.php.
References ILIAS\UI\URLBuilder\acquireParameters().
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\execute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| list<int> | $selected_ref_ids |
Definition at line 377 of file ObjectsTable.php.
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\execute().
Here is the caller graph for this function:
|
private |
| array<int,string> | $other_object_groups |
Definition at line 315 of file ObjectsTable.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
private |
| array{ref_id | int, obj_id: int, title: string, is_assigned: bool, other_assignments: \ILIAS\UI\Component\Listing\Unordered, sort_key: string} $record |
Definition at line 299 of file ObjectsTable.php.
References ilObject\_getIcon().
Here is the call graph for this function:| ILIAS\ObjectGroup\Objects\Table\ObjectsTable::execute | ( | URLBuilder | $url_builder | ) |
Definition at line 100 of file ObjectsTable.php.
References ILIAS\ObjectGroup\Objects\Table\ObjectsTable\acquireParameters(), ILIAS\ObjectGroup\Objects\Table\ObjectsTable\assignItems(), ILIAS\Repository\ctrl(), ILIAS\ObjectGroup\Objects\Table\ObjectsTable\getAssignableRefIds(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_FAILURE, ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_SUCCESS, ILIAS\ObjectGroup\Objects\Table\ObjectsTable\resolveParameter(), ILIAS\ObjectGroup\Objects\Table\ObjectsTable\resolveSelectedRefIds(), and ILIAS\ObjectGroup\Objects\Table\ObjectsTable\unassignItems().
Here is the call graph for this function:
|
private |
Definition at line 226 of file ObjectsTable.php.
References ILIAS\Repository\lng(), and ILIAS\UI\URLBuilder\withParameter().
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\getComponent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 471 of file ObjectsTable.php.
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\execute().
Here is the caller graph for this function:
|
private |
Definition at line 194 of file ObjectsTable.php.
References ilUtil\getImagePath(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\ObjectGroup\Objects\Table\ObjectsTable::getComponent | ( | URLBuilder | $url_builder | ) |
Definition at line 82 of file ObjectsTable.php.
References ILIAS\Data\Order\ASC, ILIAS\ObjectGroup\Objects\Table\ObjectsTable\getActions(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\UI\Component\Table\Data\withActions().
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\getComponents().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\ObjectGroup\Objects\Table\ObjectsTable::getComponents | ( | URLBuilder | $url_builder | ) |
Definition at line 95 of file ObjectsTable.php.
References ILIAS\ObjectGroup\Objects\Table\ObjectsTable\getComponent().
Here is the call graph for this function:| ILIAS\ObjectGroup\Objects\Table\ObjectsTable::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.
yield $row_builder->buildStandardRow($row_id, $record).
| string[] | $visible_column_ids |
Implements ILIAS\UI\Component\Table\DataRetrieval.
Definition at line 160 of file ObjectsTable.php.
References ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow().
Here is the call graph for this function:| ILIAS\ObjectGroup\Objects\Table\ObjectsTable::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 152 of file ObjectsTable.php.
|
private |
Definition at line 463 of file ObjectsTable.php.
|
private |
| list<array{ref_id | int, obj_id: int, title: string, is_assigned: bool, other_assignments: \ILIAS\UI\Component\Listing\Unordered, sort_key: string}> $records |
Definition at line 369 of file ObjectsTable.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 |
Definition at line 260 of file ObjectsTable.php.
References ilObjectGroupItems\getObjectGroupsAssociatedWithItem(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
private |
Definition at line 423 of file ObjectsTable.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\execute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 445 of file ObjectsTable.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Here is the call graph for this function:
|
private |
Definition at line 405 of file ObjectsTable.php.
References $id, and ILIAS\Repository\int().
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\execute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| list<array{ref_id | int, obj_id: int, title: string, is_assigned: bool, other_assignments: \ILIAS\UI\Component\Listing\Unordered, sort_key: string}> $records |
Definition at line 336 of file ObjectsTable.php.
References Vendor\Package\$a, Vendor\Package\$b, and ILIAS\Data\Order\get().
Here is the call graph for this function:
|
private |
| list<int> | $selected_ref_ids |
Definition at line 389 of file ObjectsTable.php.
Referenced by ILIAS\ObjectGroup\Objects\Table\ObjectsTable\execute().
Here is the caller graph for this function:
|
private |
Definition at line 61 of file ObjectsTable.php.
|
private |
Definition at line 66 of file ObjectsTable.php.
| const string ILIAS\ObjectGroup\Objects\Table\ObjectsTable::ACTION_ASSIGN = 'assign' |
Definition at line 53 of file ObjectsTable.php.
| const string ILIAS\ObjectGroup\Objects\Table\ObjectsTable::ACTION_PARAMETER = 'action' |
Definition at line 51 of file ObjectsTable.php.
| const string ILIAS\ObjectGroup\Objects\Table\ObjectsTable::ACTION_UNASSIGN = 'unassign' |
Definition at line 55 of file ObjectsTable.php.
|
private |
Definition at line 59 of file ObjectsTable.php.
| const string ILIAS\ObjectGroup\Objects\Table\ObjectsTable::ID = 'obgr_objects' |
Definition at line 47 of file ObjectsTable.php.
| const string ILIAS\ObjectGroup\Objects\Table\ObjectsTable::LIST_MATERIALS_COMMAND = 'listMaterials' |
Definition at line 57 of file ObjectsTable.php.
| const string ILIAS\ObjectGroup\Objects\Table\ObjectsTable::ROW_ID_PARAMETER = 'object_ref_id' |
Definition at line 49 of file ObjectsTable.php.