ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
RepositoryInterface.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\MetaData\Copyright;
22 
23 use ILIAS\Data\URI;
24 
26 {
27  public function getEntry(int $id): EntryInterface;
28 
34  public function getAllEntries(): \Generator;
35 
42  public function getActiveEntries(): \Generator;
43 
44  public function getDefaultEntry(): EntryInterface;
45 
46  public function deleteEntry(int $id): void;
47 
51  public function createEntry(
52  string $title,
53  string $description = '',
54  bool $is_outdated = false,
55  string $full_name = '',
56  ?URI $link = null,
57  URI|string $image = '',
58  string $alt_text = ''
59  ): int;
60 
61  public function updateEntry(
62  int $id,
63  string $title,
64  string $description = '',
65  bool $is_outdated = false,
66  string $full_name = '',
67  ?URI $link = null,
68  URI|string $image = '',
69  string $alt_text = ''
70  ): void;
71 
76  public function reorderEntries(int ...$ids): void;
77 }
reorderEntries(int ... $ids)
Updates the position of entries according to the order their IDs are passed.
getAllEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34
createEntry(string $title, string $description='', bool $is_outdated=false, string $full_name='', ?URI $link=null, URI|string $image='', string $alt_text='')
Returns the ID of the newly created entry.
updateEntry(int $id, string $title, string $description='', bool $is_outdated=false, string $full_name='', ?URI $link=null, URI|string $image='', string $alt_text='')
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24
getActiveEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...