ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullRepository.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 {
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
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}
$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
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...
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.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...