|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for enshrined\svgSanitize\ElementReference\Resolver:Public Member Functions | |
| __construct (XPath $xPath, $useNestingLimit) | |
| collect () | |
| findByElement (\DOMElement $element, $considerChildren=false) | |
| Resolves one subject by element. More... | |
| findByElementId ($elementId) | |
| Resolves subjects (plural!) by element id - in theory malformed DOM might have same ids assigned to different elements and leaving it to client/browser implementation which element to actually use. More... | |
| getElementsToRemove () | |
| Get all the elements that caused a nesting exception. More... | |
Protected Member Functions | |
| determineInvalidSubjects () | |
| Determines and tags infinite loops. More... | |
| markSubjectAsInvalid (Subject $subject) | |
| The Subject is invalid for some reason, therefore we should remove it and all it's child usages. More... | |
Protected Attributes | |
| $xPath | |
| $subjects = [] | |
| $elementsToRemove = [] | |
| $useNestingLimit | |
Definition at line 8 of file Resolver.php.
| enshrined\svgSanitize\ElementReference\Resolver::__construct | ( | XPath | $xPath, |
| $useNestingLimit | |||
| ) |
Definition at line 30 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\$useNestingLimit, and enshrined\svgSanitize\ElementReference\Resolver\$xPath.
| enshrined\svgSanitize\ElementReference\Resolver::collect | ( | ) |
Definition at line 36 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\determineInvalidSubjects().
Here is the call graph for this function:
|
protected |
Determines and tags infinite loops.
Definition at line 123 of file Resolver.php.
References enshrined\svgSanitize\Helper\extractIdReferenceFromHref(), enshrined\svgSanitize\Exceptions\NestingException\getElement(), enshrined\svgSanitize\Helper\getElementHref(), and enshrined\svgSanitize\ElementReference\Resolver\markSubjectAsInvalid().
Referenced by enshrined\svgSanitize\ElementReference\Resolver\collect().
Here is the call graph for this function:
Here is the caller graph for this function:| enshrined\svgSanitize\ElementReference\Resolver::findByElement | ( | \DOMElement | $element, |
$considerChildren = false |
|||
| ) |
Resolves one subject by element.
| \DOMElement | $element | |
| bool | $considerChildren | Whether to search in Subject's children as well |
Definition at line 50 of file Resolver.php.
References enshrined\svgSanitize\Helper\isElementContainedIn().
Here is the call graph for this function:| enshrined\svgSanitize\ElementReference\Resolver::findByElementId | ( | $elementId | ) |
Resolves subjects (plural!) by element id - in theory malformed DOM might have same ids assigned to different elements and leaving it to client/browser implementation which element to actually use.
| string | $elementId |
Definition at line 71 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Subject\getElementId().
Here is the call graph for this function:| enshrined\svgSanitize\ElementReference\Resolver::getElementsToRemove | ( | ) |
Get all the elements that caused a nesting exception.
Definition at line 153 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\$elementsToRemove.
|
protected |
The Subject is invalid for some reason, therefore we should remove it and all it's child usages.
| Subject | $subject |
Definition at line 163 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Subject\clearInternalAndGetAffectedElements().
Referenced by enshrined\svgSanitize\ElementReference\Resolver\determineInvalidSubjects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 23 of file Resolver.php.
Referenced by enshrined\svgSanitize\ElementReference\Resolver\getElementsToRemove().
|
protected |
Definition at line 18 of file Resolver.php.
|
protected |
Definition at line 28 of file Resolver.php.
Referenced by enshrined\svgSanitize\ElementReference\Resolver\__construct().
|
protected |
Definition at line 13 of file Resolver.php.
Referenced by enshrined\svgSanitize\ElementReference\Resolver\__construct().