ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAccessibilityNullCriterion.php
Go to the documentation of this file.
1 <?php
2 
21 
26 {
27  public function getTypeIdent(): string
28  {
29  return 'null';
30  }
31 
32  public function evaluate(ilObjUser $user, ilAccessibilityCriterionConfig $config): bool
33  {
34  return true;
35  }
36 
37  public function hasUniqueNature(): bool
38  {
39  return false;
40  }
41 
43  {
44  return new class ($lng) implements ilAccessibilityCriterionTypeGUI {
45  protected ilLanguage $lng;
46 
47  public function __construct(ilLanguage $lng)
48  {
49  $this->lng = $lng;
50  }
51 
52  public function appendOption(ilRadioGroupInputGUI $option, ilAccessibilityCriterionConfig $config): void
53  {
54  }
55 
56  public function getConfigByForm(ilPropertyFormGUI $form): ilAccessibilityCriterionConfig
57  {
58  return new ilAccessibilityCriterionConfig();
59  }
60 
61  public function getIdentPresentation(): string
62  {
63  return $this->lng->txt('deleted');
64  }
65 
66  public function getValuePresentation(
68  Factory $uiFactory
69  ): Component {
70  return $uifactory->legacy()->content('-');
71  }
72 
73  public function getSelection(ilAccessibilityCriterionConfig $config): ilSelectInputGUI
74  {
75  return new ilSelectInputGUI("", "");
76  }
77  };
78  }
79 }
Class ilAccessibilityNullCriterion.
This class represents a selection list property in a property form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a property in a property form.
This is how the factory for UI elements looks.
Definition: Factory.php:37
hasUniqueNature()
Returns whether or not a criterion is unique by it&#39;s nature.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31
evaluate(ilObjUser $user, ilAccessibilityCriterionConfig $config)
Interface ilAccessibilityCriterionTypeGUI.
getTypeIdent()
Returns a unique id of the criterion type.