ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Gateway.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25interface Gateway
26{
30 public function create(GenericData $data): int;
31
38
45
46 public function readByID(int $field_id): ?GenericData;
47
51 public function readByIDs(int ...$field_ids): \Generator;
52
56 public function readByRecords(bool $only_searchable, int ...$record_ids): \Generator;
57
58 public function readByImportID(string $import_id): ?GenericData;
59
60 public function update(GenericData $data): void;
61
62 public function delete(int ...$field_ids): void;
63}
readByRecords(bool $only_searchable, int ... $record_ids)
create(GenericData $data)
Returns the field ID of the created data.
createWithNewPosition(GenericData $data)
Inserts the data, but replaces position by the next position in the record.
createFromScratch(GenericData $data)
Inserts the data, but replaces position and import ID: next position in the record,...