ILIAS  release_8 Revision v8.24
ilTermsOfServiceCriterionConfig Class Reference

Class ilTermsOfServiceCriterionConfig. More...

+ Inheritance diagram for ilTermsOfServiceCriterionConfig:
+ Collaboration diagram for ilTermsOfServiceCriterionConfig:

Public Member Functions

 __construct ($data=[])
 ilTermsOfServiceCriterionConfig constructor. More...
 
 toJson ()
 
 fromJson (string $json)
 
 jsonSerialize ()
 
 toJson ()
 
 fromJson (string $json)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTermsOfServiceCriterionConfig::__construct (   $data = [])

ilTermsOfServiceCriterionConfig constructor.

Parameters
string | array$data

Definition at line 31 of file class.ilTermsOfServiceCriterionConfig.php.

32 {
33 if (is_array($data)) {
35 } else {
37
38 if (is_string($data)) {
39 $this->fromJson($data);
40 }
41 }
42 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $data, ILIAS\GlobalScreen\Provider\__construct(), and fromJson().

+ Here is the call graph for this function:

Member Function Documentation

◆ fromJson()

ilTermsOfServiceCriterionConfig::fromJson ( string  $json)

Implements ilTermsOfServiceJsonDeserialization.

Definition at line 49 of file class.ilTermsOfServiceCriterionConfig.php.

49 : void
50 {
51 $data = json_decode($json, true, 512, JSON_THROW_ON_ERROR);
52
53 $this->exchangeArray($data);
54 }

References $data.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ jsonSerialize()

ilTermsOfServiceCriterionConfig::jsonSerialize ( )

Definition at line 56 of file class.ilTermsOfServiceCriterionConfig.php.

56 : array
57 {
58 return $this->getArrayCopy();
59 }

◆ toJson()

ilTermsOfServiceCriterionConfig::toJson ( )

Implements ilTermsOfServiceJsonSerialization.

Definition at line 44 of file class.ilTermsOfServiceCriterionConfig.php.

44 : string
45 {
46 return json_encode($this, JSON_THROW_ON_ERROR);
47 }

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