ModuleXmlParser
extends XmlParserAbstract
in package
Class to parse the module.xml file of a module.
Table of Contents
- $path : string
- __construct() : mixed
- parse() : InfosAbstract
- parseFromString() : mixed
- createInfos() : InfosAbstract
- fixVersion() : mixed
- Fix version for non built lib.
- parseAutoload() : mixed
- parseDependencies() : mixed
- parseInfo() : mixed
- readComponentDependencyInfo() : array<string|int, mixed>
Properties
$path
protected
string
$path
the path of the xml file to read
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
-
the path of the xml file to read
Return values
mixed —parse()
public
parse() : InfosAbstract
Return values
InfosAbstract —parseFromString()
public
parseFromString(mixed $xmlContent) : mixed
Parameters
- $xmlContent : mixed
Return values
mixed —createInfos()
protected
createInfos() : InfosAbstract
Return values
InfosAbstract —fixVersion()
Fix version for non built lib.
protected
fixVersion(mixed $version) : mixed
Parameters
- $version : mixed
Return values
mixed —parseAutoload()
protected
parseAutoload(XMLReader $xml, ModuleInfos $object) : mixed
Parameters
- $xml : XMLReader
- $object : ModuleInfos
Return values
mixed —parseDependencies()
protected
parseDependencies(XMLReader $xml, ModuleInfos $object) : mixed
Parameters
- $xml : XMLReader
- $object : ModuleInfos
Return values
mixed —parseInfo()
protected
parseInfo(XMLReader $xml, InfosAbstract $object) : mixed
Parameters
- $xml : XMLReader
- $object : InfosAbstract
Return values
mixed —readComponentDependencyInfo()
protected
readComponentDependencyInfo(XMLReader $xml) : array<string|int, mixed>
Parameters
- $xml : XMLReader