ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
bool
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
This class represents a property form user interface.
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
Class ilTermsOfServiceCriterionConfig.
hasUniqueNature()
Returns whether or not a criterion is unique by it&#39;s nature.Example: "User Language". A user account can only have one profile language . bool
This class represents a property in a property form.
$lng
This is how the factory for UI elements looks.
Definition: Factory.php:17
legacy($content)
description: purpose: > This component is used to wrap an existing ILIAS UI element into a UI compon...
Class ilTermsOfServiceNullCriterion.
__construct(Container $dic, ilPlugin $plugin)
getTypeIdent()
Returns a unique id of the criterion type.string