[ Index ]

PHP Cross Reference of phpBB-3.3.10-deutsch




/vendor/s9e/text-formatter/src/Configurator/Collections/ -> Ruleset.php (summary)

(no description)

Copyright: Copyright (c) 2010-2022 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 311 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Ruleset:: (10 methods):

Class: Ruleset  - X-Ref

__call($methodName, array $args)   X-Ref
Add a rule to this set

param: string $methodName Rule name
param: array  $args       Arguments used to add given rule
return: self

offsetExists($k)   X-Ref
Test whether a rule category exists

param: string $k Rule name, e.g. "allowChild" or "isTransparent"

offsetGet($k)   X-Ref
Return the content of a rule category

param: string $k Rule name, e.g. "allowChild" or "isTransparent"
return: mixed

offsetSet($k, $v)   X-Ref
Not supported

offsetUnset($k)   X-Ref
Clear a subset of the rules

param: string $k Rule name, e.g. "allowChild" or "isTransparent"

asConfig()   X-Ref

merge($rules, $overwrite = true)   X-Ref
Merge a set of rules into this collection

param: array|Ruleset $rules     2D array of rule definitions, or instance of Ruleset
param: bool          $overwrite Whether to overwrite scalar rules (e.g. boolean rules)

remove($type, $tagName = null)   X-Ref
Remove a specific rule, or all the rules of a given type

param: string $type    Type of rules to clear
param: string $tagName Name of the target tag, or none to remove all rules of given type
return: void

addBooleanRule($ruleName, $bool = true)   X-Ref
Add a boolean rule

param: string $ruleName Name of the rule
param: bool   $bool     Whether to enable or disable the rule
return: self

addTargetedRule($ruleName, $tagName)   X-Ref
Add a targeted rule

param: string $ruleName Name of the rule
param: string $tagName  Name of the target tag
return: self

Generated: Wed Feb 22 20:16:20 2023 Cross-referenced by PHPXref 0.7.1