ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTermsOfServiceNullCriterion.php
Go to the documentation of this file.
1<?php
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)
59 {
60 }
61
65 public function getConfigByForm(\ilPropertyFormGUI $form) : \ilTermsOfServiceCriterionConfig
66 {
67 return new \ilTermsOfServiceCriterionConfig();
68 }
69
73 public function getIdentPresentation() : string
74 {
75 return $this->lng->txt('deleted');
76 }
77
81 public function getValuePresentation(\ilTermsOfServiceCriterionConfig $config, Factory $uiFactory) : Component
82 {
83 return $uiFactory->legacy('-');
84 }
85 };
86 }
87}
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:16
legacy($content)
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
$config
Definition: bootstrap.php:15
$user
Definition: migrateto20.php:57
if(isset($_POST['submit'])) $form
$lng