ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullRepository.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  {
29  return new NullEntry();
30  }
31 
32  public function getAllEntries(): \Generator
33  {
34  yield from [];
35  }
36 
37  public function getActiveEntries(): \Generator
38  {
39  yield from [];
40  }
41 
42  public function getDefaultEntry(): EntryInterface
43  {
44  return new NullEntry();
45  }
46 
47  public function deleteEntry(int $id): void
48  {
49  }
50 
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  return 0;
61  }
62 
63  public function updateEntry(
64  int $id,
65  string $title,
66  string $description = '',
67  bool $is_outdated = false,
68  string $full_name = '',
69  ?URI $link = null,
70  URI|string $image = '',
71  string $alt_text = ''
72  ): void {
73  }
74 
75  public function reorderEntries(int ...$ids): void
76  {
77  }
78 }
updateEntry(int $id, string $title, string $description='', bool $is_outdated=false, string $full_name='', ?URI $link=null, URI|string $image='', string $alt_text='')
getAllEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...
getActiveEntries()
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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
reorderEntries(int ... $ids)
Updates the position of entries according to the order their IDs are passed.