ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTermsOfServiceNullCriterion Class Reference

Class ilTermsOfServiceNullCriterion. More...

+ Inheritance diagram for ilTermsOfServiceNullCriterion:
+ Collaboration diagram for ilTermsOfServiceNullCriterion:

Public Member Functions

 getTypeIdent ()
 Returns a unique id of the criterion type. More...
 
 evaluate (ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
 
 hasUniqueNature ()
 Returns whether or not a criterion is unique by it's nature. More...
 
 ui (ilLanguage $lng)
 

Detailed Description

Member Function Documentation

◆ evaluate()

ilTermsOfServiceNullCriterion::evaluate ( ilObjUser  $user,
ilTermsOfServiceCriterionConfig  $config 
)
Parameters
ilObjUser$user
ilTermsOfServiceCriterionConfig$config
Returns
bool

Implements ilTermsOfServiceCriterionType.

Definition at line 35 of file class.ilTermsOfServiceNullCriterion.php.

35  : bool
36  {
37  return true;
38  }

◆ getTypeIdent()

ilTermsOfServiceNullCriterion::getTypeIdent ( )

Returns a unique id of the criterion type.

Returns
string

Implements ilTermsOfServiceCriterionType.

Definition at line 30 of file class.ilTermsOfServiceNullCriterion.php.

30  : string
31  {
32  return 'null';
33  }

◆ hasUniqueNature()

ilTermsOfServiceNullCriterion::hasUniqueNature ( )

Returns whether or not a criterion is unique by it's nature.

Example: "User Language". A user account can only have one profile language .

Returns
bool

Implements ilTermsOfServiceCriterionType.

Definition at line 40 of file class.ilTermsOfServiceNullCriterion.php.

40  : bool
41  {
42  return false;
43  }

◆ ui()

ilTermsOfServiceNullCriterion::ui ( ilLanguage  $lng)
Parameters
ilLanguage$lng
Returns
ilTermsOfServiceCriterionTypeGUI

Implements ilTermsOfServiceCriterionType.

Definition at line 45 of file class.ilTermsOfServiceNullCriterion.php.

References $config, $lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\UI\Factory\legacy(), and ILIAS\Repository\lng().

Referenced by ilTermsOfServiceNullCriterionTest\testCriterionAlwaysCreateEmptyConfigValue(), ilTermsOfServiceNullCriterionTest\testNoFormUserInterfaceElementsAreBuilt(), and ilTermsOfServiceNullCriterionTest\testTypeIdentPresentationEqualsANonEmptyString().

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  }
Interface ilTermsOfServiceCriterionTypeGUI.
$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.
This class represents a property in a property form.
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: