XPathExpr::addCondition()

XPathExpr addCondition($condition) Parameters $condition Return Value XPathExpr

XPathExpr

class XPathExpr XPath expression translator interface. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods __construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false) string getElement() XPathExpr addCondition($condition) string getCondition() XPathExpr addNameTest() XPathExpr addStarPrefix() XPathExpr join(string $comb

XmlUtils::phpize()

static mixed phpize(mixed $value) Converts an xml value to a PHP type. Parameters mixed $value Return Value mixed

XmlUtils::loadFile()

static DOMDocument loadFile(string $file, string|callable|null $schemaOrCallable = null) Loads an XML file. Parameters string $file An XML file path string|callable|null $schemaOrCallable An XSD schema file path, a callable, or null to disable validation Return Value DOMDocument Exceptions InvalidArgumentException When loading of XML file returns error

XmlUtils::convertDomElementToArray()

static array convertDomElementToArray(DOMElement $element, bool $checkPrefix = true) Converts a \DomElement object to a PHP array. The following rules applies during the conversion: Each tag is converted to a key value or an array if there is more than one "value" The content of a tag is set under a "value" key (bar) if the tag also has some nested tags The attributes are converted to keys () The nested-tags are converted to keys (bar) Parameters DOMElement $element

XmlUtils

class XmlUtils XMLUtils is a bunch of utility methods to XML operations. This class contains static methods only and is not meant to be instantiated. Methods static DOMDocument loadFile(string $file, string|callable|null $schemaOrCallable = null) Loads an XML file. static array convertDomElementToArray(DOMElement $element, bool $checkPrefix = true) Converts a \DomElement object to a PHP array. static mixed phpize(mixed $value) Converts an xml value to a PHP type. Details

XmlResourceCaster

class XmlResourceCaster Casts XML resources to array representation. Methods static castXml($h, array $a, Stub $stub, $isNested) Details static castXml($h, array $a, Stub $stub, $isNested) Parameters $h array $a Stub $stub $isNested

XmlReferenceDumper::dumpNode()

dumpNode(NodeInterface $node, $namespace = null) Parameters NodeInterface $node $namespace

XmlReferenceDumper::dump()

dump(ConfigurationInterface $configuration, $namespace = null) Parameters ConfigurationInterface $configuration $namespace

XmlReferenceDumper

class XmlReferenceDumper Dumps a XML reference configuration for the given configuration/node instance. Methods dump(ConfigurationInterface $configuration, $namespace = null) dumpNode(NodeInterface $node, $namespace = null) Details dump(ConfigurationInterface $configuration, $namespace = null) Parameters ConfigurationInterface $configuration $namespace dumpNode(NodeInterface $node, $namespace = null)