ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTermsOfServiceNullCriterion.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
$lng
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
legacy(string $content)
description: purpose: > This component is used to wrap an existing ILIAS UI element into a UI compon...
Class ilTermsOfServiceCriterionConfig.
hasUniqueNature()
Returns whether or not a criterion is unique by it&#39;s nature.
This class represents a property in a property form.
Class ilTermsOfServiceNullCriterion.
__construct(Container $dic, ilPlugin $plugin)
getTypeIdent()
Returns a unique id of the criterion type.