Ruleset
class Ruleset extends Collection implements ArrayAccess, ConfigProvider
Properties
protected array | $items | from Collection | |
protected array | $rules |
Methods
No description
Test whether a rule category exists
Return the content of a rule category
Not supported
Clear a subset of the rules
Remove a specific rule, or all the rules of a given type
Add a boolean rule
Add a targeted rule
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Collection at line 25
clear()
Empty this collection
at line 149
array|Dictionary|null
asConfig()
No description
in
Collection at line 45
int
count()
No description
in
Collection at line 57
mixed
current()
No description
in
Collection at line 66
int|string
key()
No description
in
Collection at line 75
mixed
next()
No description
in
Collection at line 84
void
rewind()
No description
in
Collection at line 92
bool
valid()
No description
at line 83
Ruleset
__call(string $methodName, array $args)
Add a rule to this set
at line 105
bool
offsetExists(string $k)
Test whether a rule category exists
at line 116
mixed
offsetGet(string $k)
Return the content of a rule category
at line 125
void
offsetSet($k, $v)
Not supported
at line 137
void
offsetUnset(string $k)
Clear a subset of the rules
at line 211
merge(array|Ruleset $rules, bool $overwrite = true)
Merge a set of rules into this collection
at line 242
void
remove(string $type, string $tagName = null)
Remove a specific rule, or all the rules of a given type
at line 290
protected Ruleset
addBooleanRule(string $ruleName, bool $bool = true)
Add a boolean rule
at line 307
protected Ruleset
addTargetedRule(string $ruleName, string $tagName)
Add a targeted rule
at line 45
void
allowChild(string $tagName)
No description
at line 45
void
allowDescendant(string $tagName)
No description
at line 45
void
autoClose(bool $bool = true)
No description
at line 45
void
autoReopen(bool $bool = true)
No description
at line 45
void
breakParagraph(bool $bool = true)
No description
at line 45
void
closeAncestor(string $tagName)
No description
at line 45
void
closeParent(string $tagName)
No description
at line 45
void
createChild(string $tagName)
No description
at line 45
void
createParagraphs(bool $bool = true)
No description
at line 45
void
denyChild(string $tagName)
No description
at line 45
void
denyDescendant(string $tagName)
No description
at line 45
void
disableAutoLineBreaks(bool $bool = true)
No description
at line 45
void
enableAutoLineBreaks(bool $bool = true)
No description
at line 45
void
fosterParent(string $tagName)
No description
at line 45
void
ignoreSurroundingWhitespace(bool $bool = true)
No description
at line 45
void
ignoreTags(bool $bool = true)
No description
at line 45
void
ignoreText(bool $bool = true)
No description
at line 45
void
isTransparent(bool $bool = true)
No description
at line 45
void
preventLineBreaks(bool $bool = true)
No description
at line 45
void
requireParent(string $tagName)
No description
at line 45
void
requireAncestor(string $tagName)
No description
at line 45
void
suspendAutoLineBreaks(bool $bool = true)
No description
at line 45
void
trimFirstLine(bool $bool = true)
No description