Bånder

HtmlParser extends Result
in package

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

Properties

$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

Methods

__construct()

public __construct(string $contents) : mixed
Parameters
$contents : string

canParse()

public static canParse(string $contents) : bool
Parameters
$contents : string
Return values
bool

config()

public config(mixed $key[, mixed $which = 'local' ]) : string|null
Parameters
$key : mixed
$which : mixed = 'local'
Return values
string|null

configs()

public configs() : Collection
Return values
Collection

hasConfig()

public hasConfig(mixed $key) : bool
Parameters
$key : mixed
Return values
bool

hasModule()

public hasModule(mixed $key) : bool
Parameters
$key : mixed
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

module()

public module(mixed $key) : Module|null
Parameters
$key : mixed
Return values
Module|null

modules()

public modules() : Collection
Return values
Collection

version()

public version() : string
Return values
string

findGroupedConfigsFor()

protected findGroupedConfigsFor(DOMElement $heading) : Collection
Parameters
$heading : DOMElement
Return values
Collection

getHostname()

protected getHostname() : string
Return values
string

rowToValues()

protected rowToValues(DOMElement $row) : Collection
Parameters
$row : DOMElement
Return values
Collection

xpath()

protected xpath() : DOMXPath
Return values
DOMXPath

        
On this page

Search results