| [ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| Copyright: | Copyright (c) 2010-2022 The s9e authors |
| License: | http://www.opensource.org/licenses/mit-license.php The MIT License |
| File Size: | 257 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| getBitfields(TagCollection $tags, Ruleset $rootRules) X-Ref |
| Generate the allowedChildren and allowedDescendants bitfields for every tag and for the root context param: TagCollection $tags param: Ruleset $rootRules return: array |
| initMatrix(array $rules) X-Ref |
| Initialize a matrix of settings param: array $rules Rules for each tag return: array Multidimensional array of [tagName => [scope => [targetName => setting]]] |
| applyTargetedRule(array &$matrix, $rules, $ruleName, $key, $value) X-Ref |
| Apply given rule from each applicable tag For each tag, if the rule has any target we set the corresponding value for each target in the matrix param: array &$matrix Settings matrix param: array $rules Rules for each tag param: string $ruleName Rule name param: string $key Key in the matrix param: integer $value Value to be set return: void |
| unrollRules(array $rules) X-Ref |
param: array $rules return: array |
| pruneMatrix(array &$matrix) X-Ref |
| Remove unusable tags from the matrix param: array &$matrix return: void |
| pack($allowedChildren, $allowedDescendants) X-Ref |
| Convert a binary representation such as "101011" to an array of integer Each bitfield is split in groups of 8 bits, then converted to a 16-bit integer where the allowedChildren bitfield occupies the least significant bits and the allowedDescendants bitfield occupies the most significant bits param: string $allowedChildren param: string $allowedDescendants return: integer[] |
| Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |