|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Collaboration diagram for ILIAS\LegalDocuments\Provide\ProvideDocument:Public Member Functions | |
| __construct (private readonly string $id, private readonly DocumentRepository $document_repository, private readonly SelectionMap $conditions, private readonly array $content_as_component, private readonly Container $container, ?Closure $create_table_gui=null) | |
| table (object $gui, string $command, ?EditLinks $edit_links=null) | |
| chooseDocumentFor (ilObjUser $user) | |
| documentMatches (Document $document, ilObjUser $user) | |
| repository () | |
| hash () | |
| toCondition (CriterionContent $content) | |
| conditionGroups (?CriterionContent $criterion=null) | |
| validateCriteriaContent (array $criteria, CriterionContent $content) | |
| contentAsComponent (DocumentContent $content) | |
Data Fields | |
| const | CRITERION_ALREADY_EXISTS = 'Criterion already exists.' |
| const | CRITERION_WOULD_NEVER_MATCH = 'Criterion would never match.' |
Private Member Functions | |
| validateAgainst (Result $b, Criterion $a) | |
| find (Closure $predicate, array $array) | |
| A More... | |
| any (Closure $predicate, array $array) | |
| A More... | |
| all (Closure $predicate, array $array) | |
| A More... | |
Private Attributes | |
| readonly Closure | $create_table_gui |
Definition at line 50 of file ProvideDocument.php.
| ILIAS\LegalDocuments\Provide\ProvideDocument::__construct | ( | private readonly string | $id, |
| private readonly DocumentRepository | $document_repository, | ||
| private readonly SelectionMap | $conditions, | ||
| private readonly array | $content_as_component, | ||
| private readonly Container | $container, | ||
| ?Closure | $create_table_gui = null |
||
| ) |
| null|Closure(object,string,TableInterface) | Table $create_table_gui |
| array<ConditionDefinition> | $conditions |
| array<string,Closure(CriterionContent) | Component $content_as_component |
Definition at line 63 of file ProvideDocument.php.
|
private |
A
| Closure(A) | bool $predicate |
| list<A> | $array |
Definition at line 206 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Provide\ProvideDocument\any().
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\documentMatches().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
A
| Closure(A) | bool $predicate |
| list<A> | $array |
Definition at line 196 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Provide\ProvideDocument\find().
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\all().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::chooseDocumentFor | ( | ilObjUser | $user | ) |
Definition at line 92 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Provide\ProvideDocument\documentMatches(), and ILIAS\LegalDocuments\Provide\ProvideDocument\find().
Referenced by ILIAS\LegalDocuments\test\Provide\ProvideDocumentTest\testChooseDocumentFor().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::conditionGroups | ( | ?CriterionContent | $criterion = null | ) |
Definition at line 126 of file ProvideDocument.php.
References ILIAS\LTI\ToolProvider\$key, ILIAS\LegalDocuments\SelectionMap\choices(), and ILIAS\LegalDocuments\ConditionDefinition\formGroup().
Here is the call graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::contentAsComponent | ( | DocumentContent | $content | ) |
Definition at line 154 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Value\DocumentContent\type().
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\table().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::documentMatches | ( | Document | $document, |
| ilObjUser | $user | ||
| ) |
Definition at line 100 of file ProvideDocument.php.
References Vendor\Package\$c, ILIAS\LegalDocuments\Provide\ProvideDocument\all(), ILIAS\LegalDocuments\Value\Document\criteria(), and ILIAS\LegalDocuments\Provide\ProvideDocument\toCondition().
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\chooseDocumentFor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
A
| Closure(A) | bool $predicate |
| list<A> | $array |
Definition at line 180 of file ProvideDocument.php.
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\any(), and ILIAS\LegalDocuments\Provide\ProvideDocument\chooseDocumentFor().
Here is the caller graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::hash | ( | ) |
Definition at line 113 of file ProvideDocument.php.
| ILIAS\LegalDocuments\Provide\ProvideDocument::repository | ( | ) |
Definition at line 108 of file ProvideDocument.php.
Referenced by ILIAS\LegalDocuments\SlotConstructor\history().
Here is the caller graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::table | ( | object | $gui, |
| string | $command, | ||
| ?EditLinks | $edit_links = null |
||
| ) |
Definition at line 74 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Provide\ProvideDocument\$create_table_gui, ILIAS\LegalDocuments\Provide\ProvideDocument\contentAsComponent(), and ILIAS\LegalDocuments\Provide\ProvideDocument\toCondition().
Here is the call graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::toCondition | ( | CriterionContent | $content | ) |
Definition at line 118 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Value\CriterionContent\type().
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\documentMatches(), ILIAS\LegalDocuments\Provide\ProvideDocument\table(), and ILIAS\LegalDocuments\Provide\ProvideDocument\validateAgainst().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 159 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Value\Criterion\content(), ILIAS\Data\Result\then(), and ILIAS\LegalDocuments\Provide\ProvideDocument\toCondition().
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\validateCriteriaContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LegalDocuments\Provide\ProvideDocument::validateCriteriaContent | ( | array | $criteria, |
| CriterionContent | $content | ||
| ) |
| list<Criterion> | $criteria |
Definition at line 145 of file ProvideDocument.php.
References ILIAS\LegalDocuments\Provide\ProvideDocument\validateAgainst().
Here is the call graph for this function:
|
private |
Definition at line 56 of file ProvideDocument.php.
Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\table().
| const ILIAS\LegalDocuments\Provide\ProvideDocument::CRITERION_ALREADY_EXISTS = 'Criterion already exists.' |
Definition at line 52 of file ProvideDocument.php.
Referenced by ILIAS\LegalDocuments\test\Provide\ProvideDocumentTest\testDuplicateCriteriaContent().
| const ILIAS\LegalDocuments\Provide\ProvideDocument::CRITERION_WOULD_NEVER_MATCH = 'Criterion would never match.' |
Definition at line 53 of file ProvideDocument.php.
Referenced by ILIAS\LegalDocuments\test\Provide\ProvideDocumentTest\testNeverMatchingCriteriaContent().