ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ComponentEntryRules.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\UI\Implementation\Crawler\Entry
;
4
12
class
ComponentEntryRules
extends
AbstractEntryPart
implements \JsonSerializable
13
{
17
protected
$rules
= array(
18
"usage"
=> array(),
19
"composition"
=> array(),
20
"interaction"
=> array(),
21
"wording"
=> array(),
22
"ordering"
=> array(),
23
"style"
=> array(),
24
"responsiveness"
=> array(),
25
"accessibility"
=> array()
26
);
27
32
public
function
__construct
(
$rules
= array())
33
{
34
parent::__construct
();
35
$this->
setRules
(
$rules
);
36
}
37
42
public
function
withRules
(
$rules
= array())
43
{
44
$clone = clone $this;
45
$clone->setRules(
$rules
);
46
return
$clone;
47
}
48
53
protected
function
setRules
(
$rules
)
54
{
55
if
(!
$rules
) {
56
return
;
57
}
58
$this->
assert
()->isArray(
$rules
);
59
foreach
(
$rules
as $rule_category => $category_rules) {
60
$this->
assert
()->isIndex($rule_category, $this->rules);
61
if
($category_rules && $category_rules !=
""
) {
62
$this->
assert
()->isArray($category_rules);
63
foreach
($category_rules as $rule_id => $rule) {
64
$this->
assert
()->isString($rule);
65
$this->rules[$rule_category][$rule_id] = $rule;
66
}
67
}
68
}
69
}
70
74
public
function
getRules
()
75
{
76
return
$this->rules
;
77
}
78
82
public
function
hasRules
()
83
{
84
foreach
($this->rules as $category_rules) {
85
if
(
sizeof
($category_rules)) {
86
return
true
;
87
}
88
}
89
return
false
;
90
}
91
95
public
function
jsonSerialize
()
96
{
97
return
$this->
getRules
();
98
}
99
}
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules
Container to hold rules of UI Components.
Definition:
ComponentEntryRules.php:12
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\jsonSerialize
jsonSerialize()
Definition:
ComponentEntryRules.php:95
ILIAS\UI\Implementation\Crawler\Entry\AbstractEntryPart
Abstract Entry Part to share some common entry functionality.
Definition:
AbstractEntryPart.php:13
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\$rules
$rules
Definition:
ComponentEntryRules.php:17
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\__construct
__construct($rules=array())
ComponentEntryDescription constructor.
Definition:
ComponentEntryRules.php:32
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\getRules
getRules()
Definition:
ComponentEntryRules.php:74
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\withRules
withRules($rules=array())
Definition:
ComponentEntryRules.php:42
ILIAS\UI\Implementation\Crawler\Entry\AbstractEntryPart\assert
assert()
Definition:
AbstractEntryPart.php:31
ILIAS\UI\Implementation\Crawler\Entry
Definition:
AbstractEntryPart.php:4
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:40
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\hasRules
hasRules()
Definition:
ComponentEntryRules.php:82
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntryRules\setRules
setRules($rules)
Definition:
ComponentEntryRules.php:53
src
UI
Implementation
Crawler
Entry
ComponentEntryRules.php
Generated on Wed Apr 9 2025 21:01:56 for ILIAS by
1.8.13 (using
Doxyfile
)