|
ILIAS
trunk Revision v12.0_alpha-1613-gae4c99ebb18
|
Inheritance diagram for ILIAS\BookingManager\BookableItem\Table\BookableItemTable:
Collaboration diagram for ILIAS\BookingManager\BookableItem\Table\BookableItemTable:Public Member Functions | |
| __construct (protected readonly UIFactory $ui_factory, protected readonly UIRenderer $ui_renderer, protected readonly ilLanguage $lng, protected readonly HttpService $http, protected readonly ilUIService $ui_service, protected readonly ilCtrlInterface $ctrl, protected readonly ilGlobalTemplateInterface $tpl, protected readonly Refinery $refinery, protected readonly AccessManager $access, protected readonly ilObjBookingPool $pool, protected readonly BookingProcessManager $process_manager, protected readonly Settings $settings, protected readonly ilObjUser $user, protected readonly int $ref_id, protected readonly bool $active_management, protected readonly int $booking_context_obj_id,) | |
| getTableId () | |
| getComponents (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... | |
Public Member Functions inherited from ILIAS\BookingManager\Common\Table\Table | |
| getTableId () | |
| execute (URLBuilder $url_builder) | |
| getComponents (URLBuilder $url_builder) | |
| 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 | ROW_ID_PARAMETER = 'bookable_item_row' |
| const string | ACTION_PARAMETER = 'action' |
| const string | ACTION_TYPE_PARAMETER = 'action_type' |
Protected Member Functions | |
| getColumns () | |
| getFilterInputs () | |
| loadRecords (mixed $filter_data) | |
| buildRowCells (array $record) | |
| sortRecords (Order $order, array $records) | |
| getSortCallable (string $key, int $direction) | |
| limitRecords (Range $range, array $records) | |
| getFilterComponent () | |
| acquireParameters (URLBuilder $url_builder) | |
| getTableActions () | |
| loadFilteredBookingObjects (?string $title_filter, ?string $description_filter, ?array $object_ids_filter) | |
| getReservationsForObject (int $booking_object_id) | |
| buildAvailabilityCell (int $available, int $total) | |
Private Member Functions | |
| presetFilterInputs (array $filter_inputs) | |
Private Attributes | |
| array | $reservation_cache = [] |
| TableActions | $table_actions = null |
Definition at line 54 of file BookableItemTable.php.
| ILIAS\BookingManager\BookableItem\Table\BookableItemTable::__construct | ( | protected readonly UIFactory | $ui_factory, |
| protected readonly UIRenderer | $ui_renderer, | ||
| protected readonly ilLanguage | $lng, | ||
| protected readonly HttpService | $http, | ||
| protected readonly ilUIService | $ui_service, | ||
| protected readonly ilCtrlInterface | $ctrl, | ||
| protected readonly ilGlobalTemplateInterface | $tpl, | ||
| protected readonly Refinery | $refinery, | ||
| protected readonly AccessManager | $access, | ||
| protected readonly ilObjBookingPool | $pool, | ||
| protected readonly BookingProcessManager | $process_manager, | ||
| protected readonly Settings | $settings, | ||
| protected readonly ilObjUser | $user, | ||
| protected readonly int | $ref_id, | ||
| protected readonly bool | $active_management, | ||
| protected readonly int | $booking_context_obj_id | ||
| ) |
Definition at line 71 of file BookableItemTable.php.
|
protected |
Definition at line 258 of file BookableItemTable.php.
References ILIAS\UI\URLBuilder\acquireParameters().
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getComponents().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 347 of file BookableItemTable.php.
References ilUtil\getImagePath(), and ILIAS\Repository\lng().
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable\buildRowCells(), and ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable\buildRowCells().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable, and ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable.
|
abstractprotected |
Reimplemented in ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable, and ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable.
| ILIAS\BookingManager\BookableItem\Table\BookableItemTable::getComponents | ( | URLBuilder | $url_builder | ) |
Implements ILIAS\BookingManager\Common\Table\Table.
Definition at line 99 of file BookableItemTable.php.
References $components, ILIAS\BookingManager\BookableItem\Table\BookableItemTable\acquireParameters(), ILIAS\Data\Order\ASC, ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getFilterComponent(), ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getTableActions(), ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getTableId(), ILIAS\FileDelivery\http(), ilBookingReservation\isBookingPoolLimitReachedByUser(), ILIAS\Repository\lng(), ilObjBookingPool\TYPE_NO_SCHEDULE, and ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Definition at line 225 of file BookableItemTable.php.
References ILIAS\Repository\ctrl().
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getComponents().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable, and ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable.
|
protected |
Definition at line 327 of file BookableItemTable.php.
References ilBookingReservation\getList().
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable\hasActiveReservations(), and ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable\loadRecords().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\BookingManager\BookableItem\Table\BookableItemTable::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 139 of file BookableItemTable.php.
References ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow(), and ILIAS\BookingManager\Common\Table\getTableActions().
Here is the call graph for this function:
|
protected |
Reimplemented in ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable.
Definition at line 203 of file BookableItemTable.php.
References Vendor\Package\$a, Vendor\Package\$b, and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Definition at line 268 of file BookableItemTable.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\BookingManager\Common\Table\getTableActions(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getComponents().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\BookingManager\BookableItem\Table\BookableItemTable::getTableId | ( | ) |
Implements ILIAS\BookingManager\Common\Table\Table.
Definition at line 91 of file BookableItemTable.php.
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemTable\getComponents().
Here is the caller graph for this function:| ILIAS\BookingManager\BookableItem\Table\BookableItemTable::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 BookableItemTable.php.
|
protected |
| array<string,mixed>[] | $records |
Definition at line 220 of file BookableItemTable.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:
|
protected |
Definition at line 292 of file BookableItemTable.php.
References ILIAS\Repository\int().
Referenced by ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable\loadRecords(), and ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable\loadRecords().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\BookingManager\BookableItem\Table\BookableItemWithoutScheduleTable, and ILIAS\BookingManager\BookableItem\Table\BookableItemWithScheduleTable.
|
private |
Definition at line 241 of file BookableItemTable.php.
References ILIAS\Repository\settings().
Here is the call graph for this function:
|
protected |
| array<string,mixed>[] | $records |
Definition at line 182 of file BookableItemTable.php.
References ILIAS\Data\Order\get().
Here is the call graph for this function:
|
private |
Definition at line 67 of file BookableItemTable.php.
|
private |
Definition at line 69 of file BookableItemTable.php.
| const string ILIAS\BookingManager\BookableItem\Table\BookableItemTable::ACTION_PARAMETER = 'action' |
Definition at line 60 of file BookableItemTable.php.
| const string ILIAS\BookingManager\BookableItem\Table\BookableItemTable::ACTION_TYPE_PARAMETER = 'action_type' |
Definition at line 62 of file BookableItemTable.php.
| const string ILIAS\BookingManager\BookableItem\Table\BookableItemTable::ROW_ID_PARAMETER = 'bookable_item_row' |
Definition at line 58 of file BookableItemTable.php.