ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilTermsOfServiceNullCriterion.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
6
12{
16 public function getTypeIdent() : string
17 {
18 return 'null';
19 }
20
25 {
26 return true;
27 }
28
32 public function hasUniqueNature() : bool
33 {
34 return false;
35 }
36
41 {
42 return new class($lng) implements ilTermsOfServiceCriterionTypeGUI {
44 protected $lng;
45
50 public function __construct(ilLanguage $lng)
51 {
52 $this->lng = $lng;
53 }
54
58 public function appendOption(ilRadioGroupInputGUI $option, ilTermsOfServiceCriterionConfig $config) : void
59 {
60 }
61
65 public function getConfigByForm(ilPropertyFormGUI $form) : ilTermsOfServiceCriterionConfig
66 {
68 }
69
73 public function getIdentPresentation() : string
74 {
75 return $this->lng->txt('deleted');
76 }
77
81 public function getValuePresentation(
83 Factory $uiFactory
84 ) : Component {
85 return $uiFactory->legacy('-');
86 }
87 };
88 }
89}
An exception for terminatinating execution or to throw for unit testing.
language handling
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.Example: "User Language"....
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
bool
getTypeIdent()
Returns a unique id of the criterion type.string
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This is how the factory for UI elements looks.
Definition: Factory.php:18
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
legacy()
Definition: legacy.php:3
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$lng