19 declare(strict_types=1);
51 public function all(
int $offset = 0, ?
int $limit =
null): array
67 public function select(array $ids): array
88 return $this->
repository->findId($document_id);
94 $this->
repository->createDocument($title, $content);
100 $this->
repository->createCriterion($document, $content);
112 $this->
repository->deleteCriterion($criterion_id);
118 $this->
repository->updateDocumentTitle($document_id, $title);
124 $this->
repository->updateDocumentContent($document_id, $content);
130 $this->
repository->updateDocumentOrder($document_id, $order);
136 $this->
repository->updateCriterionContent($criterion_id, $content);
142 return $this->
repository->documentFromRow($row, $criteria);
151 public function exists(
string $doc_id_name): string
154 return $this->
repository->exists($doc_id_name);
159 if (!in_array($method, self::WHITELIST,
true)) {
160 throw new Exception(
'You are not allowed to call this method.');
updateDocumentTitle(DocumentId $document_id, string $title)
deleteCriterion(int $criterion_id)
createCriterion(Document $document, CriterionContent $content)
findId(DocumentId $document_id)
exists(string $doc_id_name)
repository()
description: > Example for rendering a repository card
checkAccess(string $method)
createDocument(string $title, DocumentContent $content)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
all(int $offset=0, ?int $limit=null)
updateCriterionContent(int $criterion_id, CriterionContent $content)
documentFromRow(array $row, array $criteria)
__construct(private readonly DocumentRepository $repository)
updateDocumentOrder(DocumentId $document_id, int $order)
deleteDocument(Document $document)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
updateDocumentContent(DocumentId $document_id, DocumentContent $content)