Skip to content

XmlConfigHandler

XmlConfigHandler is the base config handler that deals with DOMDocuments

abstract class XmlConfigHandler extends BaseConfigHandler implements IXmlConfigHandler

ExtendsBaseConfigHandler
ImplementsIXmlConfigHandler
Since1.0.0
SourceConfig/XmlConfigHandler.php
PropertyTypeDescription
$contextmixedprotected.
MethodDescription
initialize(?Context $context = null, array<string, mixed> $parameters = []): voidInitialize this ConfigHandler.

public function initialize(?Context $context = null, array<string, mixed> $parameters = []): void

Initialize this ConfigHandler.

An associative array of initialization parameters.

ParameterTypeDescription
$context?ContextThe context to work with (if available).
$parametersarray``<``string``, ``mixed``>An associative array of initialization parameters.
ThrowsWhen
InitializationExceptionIf an error occurs while initializing the ConfigHandler

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
appendParameter()ParameterHolderAppend a parameter.
appendParameterByRef()ParameterHolderAppend a parameter by reference.
clearParameters()ParameterHolderClear all parameters associated with this request.
execute()IXmlConfigHandlerExecute this configuration handler.
getFlatParameterNames()ParameterHolderRetrieve an array of flattened parameter names.
getParameter()ParameterHolderRetrieve a parameter.
getParameterNames()ParameterHolderRetrieve an array of parameter names.
getParameters()ParameterHolderRetrieve an array of parameters.
hasParameter()ParameterHolderIndicates whether or not a parameter exists.
literalize()BaseConfigHandlerLiteralize a string value.
removeParameter()ParameterHolderRemove a parameter.
replaceConstants()BaseConfigHandlerReplace configuration directive identifiers in a string.
replacePath()BaseConfigHandlerReplace a relative filesystem path with an absolute one.
reset()ParameterHolderRemoves every parameter held, leaving the holder empty for reuse.
setParameter()ParameterHolderSet a parameter.
setParameterByRef()ParameterHolderSet a parameter by reference.
setParameters()ParameterHolderSet an array of parameters.
setParametersByRef()ParameterHolderSet an array of parameters by reference.