ILIAS  release_8 Revision v8.24
class.ilTermsOfServiceNullCriterion.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
23
29{
30 public function getTypeIdent(): string
31 {
32 return 'null';
33 }
34
36 {
37 return true;
38 }
39
40 public function hasUniqueNature(): bool
41 {
42 return false;
43 }
44
46 {
47 return new class ($lng) implements ilTermsOfServiceCriterionTypeGUI {
48 protected ilLanguage $lng;
49
50 public function __construct(ilLanguage $lng)
51 {
52 $this->lng = $lng;
53 }
54
55 public function appendOption(ilRadioGroupInputGUI $group, ilTermsOfServiceCriterionConfig $config): void
56 {
57 }
58
59 public function getConfigByForm(ilPropertyFormGUI $form): ilTermsOfServiceCriterionConfig
60 {
62 }
63
64 public function getIdentPresentation(): string
65 {
66 return $this->lng->txt('deleted');
67 }
68
69 public function getValuePresentation(
71 Factory $uiFactory
72 ): Component {
73 return $uiFactory->legacy('-');
74 }
75 };
76 }
77}
language handling
User class.
This class represents a property form user interface.
This class represents a property in a property form.
Class ilTermsOfServiceCriterionConfig.
Class ilTermsOfServiceNullCriterion.
hasUniqueNature()
Returns whether or not a criterion is unique by it's nature.
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
getTypeIdent()
Returns a unique id of the criterion type.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This is how the factory for UI elements looks.
Definition: Factory.php:38
legacy(string $content)
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$lng