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 }
Interface ilTermsOfServiceCriterionTypeGUI.
$config
Definition: bootstrap.php:15
Interface ilTermsOfServiceCriterionType.
This class represents a property form user interface.
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.
if(isset($_POST['submit'])) $form
$lng
This is how the factory for UI elements looks.
Definition: Factory.php:15
legacy($content)
description: purpose: > This component is used to wrap an existing ILIAS UI element into a UI compon...
$user
Definition: migrateto20.php:57
Class ilTermsOfServiceNullCriterion.
language handling
getTypeIdent()
Returns a unique id of the criterion type.string
evaluate(\ilObjUser $user, \ilTermsOfServiceCriterionConfig $config)
bool