Table of Contents
Properties
-
$aliases
: array<string|int, mixed>
-
$configs
: Collection
-
$contents
: string
-
$modules
: Collection
-
$version
: string
-
$xpath
: DOMXPath
Methods
-
__construct()
: mixed
-
canParse()
: bool
-
config()
: string|null
-
configs()
: Collection
-
hasConfig()
: bool
-
hasModule()
: bool
-
jsonSerialize()
: array<string|int, mixed>
-
module()
: Module|null
-
modules()
: Collection
-
version()
: string
-
findGroupedConfigsFor()
: Collection
-
getHostname()
: string
-
getOs()
: string
-
parse()
: void
-
rowToValues()
: Collection
-
xpath()
: DOMXPath
$aliases
protected
array<string|int, mixed>
$aliases
= ['os', 'hostname']
$configs
protected
Collection
$configs
$contents
protected
string
$contents
$modules
protected
Collection
$modules
$version
protected
string
$version
$xpath
protected
DOMXPath
$xpath
__construct()
public
__construct(string $contents) : mixed
Parameters
-
$contents
: string
-
canParse()
public
static canParse(string $contents) : bool
Parameters
-
$contents
: string
-
config()
public
config(mixed $key[, mixed $which = 'local' ]) : string|null
Parameters
-
$key
: mixed
-
-
$which
: mixed
= 'local'
-
Return values
string|null
configs()
public
configs() : Collection
hasConfig()
public
hasConfig(mixed $key) : bool
Parameters
-
$key
: mixed
-
hasModule()
public
hasModule(mixed $key) : bool
Parameters
-
$key
: mixed
-
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
module()
public
module(mixed $key) : Module|null
Parameters
-
$key
: mixed
-
modules()
public
modules() : Collection
version()
public
version() : string
findGroupedConfigsFor()
protected
findGroupedConfigsFor(DOMElement $heading) : Collection
Parameters
-
$heading
: DOMElement
-
getHostname()
protected
getHostname() : string
getOs()
protected
getOs() : string
parse()
protected
parse() : void
rowToValues()
protected
rowToValues(DOMElement $row) : Collection
Parameters
-
$row
: DOMElement
-
xpath()
protected
xpath() : DOMXPath