ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getAllEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...
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:23
getActiveEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...