ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RepositoryInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
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}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
getActiveEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...
getAllEntries()
The default entry is returned first, and the remaining entries are returned according to their positi...
reorderEntries(int ... $ids)
Updates the position of entries according to the order their IDs are passed.
updateEntry(int $id, string $title, string $description='', bool $is_outdated=false, string $full_name='', ?URI $link=null, URI|string $image='', string $alt_text='')
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.