[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/enshrined/svg-sanitize/src/ElementReference/ -> Resolver.php (summary)

(no description)

File Size: 169 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Resolver:: (9 methods):
  __construct()
  collect()
  findByElement()
  findByElementId()
  collectIdentifiedElements()
  processReferences()
  determineInvalidSubjects()
  getElementsToRemove()
  markSubjectAsInvalid()


Class: Resolver  - X-Ref

__construct(XPath $xPath, $useNestingLimit)   X-Ref


collect()   X-Ref
No description

findByElement(\DOMElement $element, $considerChildren = false)   X-Ref
Resolves one subject by element.

param: \DOMElement $element
param: bool $considerChildren Whether to search in Subject's children as well
return: Subject|null

findByElementId($elementId)   X-Ref
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.

param: string $elementId
return: Subject[]

collectIdentifiedElements()   X-Ref
No description

processReferences()   X-Ref
Processes references from and to elements having `id` attribute concerning
their occurrence in `<use ... xlink:href="#identifier">` statements.


determineInvalidSubjects()   X-Ref
Determines and tags infinite loops.


getElementsToRemove()   X-Ref
Get all the elements that caused a nesting exception.

return: array

markSubjectAsInvalid(Subject $subject)   X-Ref
The Subject is invalid for some reason, therefore we should
remove it and all it's child usages.

param: Subject $subject



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer