ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
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 
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 
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 }
getRecords(?\DateTimeImmutable $from=null, ?\DateTimeImmutable $until=null, ?int $limit=null, ?int $offset=null)
getRecordInfos(?\DateTimeImmutable $from=null, ?\DateTimeImmutable $until=null, ?int $limit=null, ?int $offset=null)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getRecordCount(?\DateTimeImmutable $from=null, ?\DateTimeImmutable $until=null)
createRecord(int $obj_id, string $identifier, \DOMDocument $metadata)
updateRecord(int $obj_id, \DOMDocument $metadata)