ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAccessibilityCriterionConfig.php
Go to the documentation of this file.
1<?php
2
23{
28 public function __construct($data = [])
29 {
30 if (is_array($data)) {
32 } else {
34
35 if (is_string($data)) {
36 $this->fromJson($data);
37 }
38 }
39 }
40
44 public function toJson(): string
45 {
46 $json = json_encode($this);
47
48 return $json;
49 }
50
54 public function fromJson(string $json): void
55 {
56 $data = json_decode($json, true);
57
58 $this->exchangeArray($data);
59 }
60
61 public function jsonSerialize(): array
62 {
63 return $this->getArrayCopy();
64 }
65}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct($data=[])
ilAccessibilityCriterionConfig constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc