Documentation

Symbols

Class Symbols

Table of Contents

Properties

$attributes  : array<string|int, mixed>
$classes  : array<string|int, mixed>
$elements  : array<string|int, mixed>

Methods

scan()  : static
parseClasses()  : array<string|int, mixed>
scanNode()  : mixed
increment()  : mixed

Properties

$attributes

public array<string|int, mixed> $attributes = []

Array(string $attr => int $count).

$classes

public array<string|int, mixed> $classes = []

Array(string $class => int $count).

$elements

public array<string|int, mixed> $elements = []

Array(string $element => int $count).

Methods

scan()

public static scan(string $html) : static
Parameters
$html : string
Return values
static

parseClasses()

protected parseClasses(string $expr) : array<string|int, mixed>
Parameters
$expr : string

Ex: 'crm-icon fa-mail'

Return values
array<string|int, mixed>

Ex: ['crm-icon', 'fa-mail']

scanNode()

protected scanNode(DOMNode $node) : mixed
Parameters
$node : DOMNode

increment()

private static increment(mixed &$arr, mixed $key) : mixed
Parameters
$arr : mixed
$key : mixed

        
On this page

Search results