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{
28 public function getRecords(
29 ?\DateTimeImmutable $from = null,
30 ?\DateTimeImmutable $until = null,
31 ?int $limit = null,
32 ?int $offset = null
33 ): \Generator {
34 yield from [];
35 }
36
40 public function getRecordInfos(
41 ?\DateTimeImmutable $from = null,
42 ?\DateTimeImmutable $until = null,
43 ?int $limit = null,
44 ?int $offset = null
45 ): \Generator {
46 yield from [];
47 }
48
49 public function getRecordCount(
50 ?\DateTimeImmutable $from = null,
51 ?\DateTimeImmutable $until = null
52 ): int {
53 return 0;
54 }
55
56 public function getEarliestDatestamp(): \DateTimeImmutable
57 {
58 return new \DateTimeImmutable('@0');
59 }
60
61 public function getRecordByIdentifier(string $identifier): ?RecordInterface
62 {
63 return null;
64 }
65
66 public function doesRecordWithIdentifierExist(string $identifier): bool
67 {
68 return false;
69 }
70
71 public function doesRecordExistForObjID(int $obj_id): bool
72 {
73 return false;
74 }
75
76 public function createRecord(int $obj_id, string $identifier, \DOMDocument $metadata): void
77 {
78 }
79
80 public function updateRecord(int $obj_id, \DOMDocument $metadata): void
81 {
82 }
83
84 public function deleteRecord(int $obj_id): void
85 {
86 }
87}
getRecordCount(?\DateTimeImmutable $from=null, ?\DateTimeImmutable $until=null)
getRecords(?\DateTimeImmutable $from=null, ?\DateTimeImmutable $until=null, ?int $limit=null, ?int $offset=null)
updateRecord(int $obj_id, \DOMDocument $metadata)
createRecord(int $obj_id, string $identifier, \DOMDocument $metadata)
getRecordInfos(?\DateTimeImmutable $from=null, ?\DateTimeImmutable $until=null, ?int $limit=null, ?int $offset=null)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...