yxorP Documentation

rules
in package
implements publicSuffixListInterface

Interfaces, Classes, Traits and Enums

publicSuffixListInterface

Table of Contents

ICANN_DOMAINS  = 'ICANN_DOMAINS'
PRIVATE_DOMAINS  = 'PRIVATE_DOMAINS'
PSL_SECTION  = ['ICANN' => ['BEGIN' => self::ICANN_DOMAINS, 'END' => ''], 'PRIVATE' => ['BEGIN' => self::PRIVATE_DOMAINS, 'END' => '']]
REGEX_PSL_SECTION  = ',^// ===(?<point>BEGIN|END) (?<type>ICANN|PRIVATE) DOMAINS===,'
$rules  : array<string|int, mixed>
__set_state()  : self
fromPath()  : self
fromString()  : self
getCookieDomain()  : resolvedInterfaceDomainNameInterface
getICANNDomain()  : resolvedInterfaceDomainNameInterface
getPrivateDomain()  : resolvedInterfaceDomainNameInterface
resolve()  : resolvedInterfaceDomainNameInterface
__construct()  : mixed
addRule()  : array<string|int, mixed>
getPublicSuffixLengthFromSection()  : int
getSection()  : string
parse()  : array<string|int, mixed>
resolveSuffix()  : array<string|int, mixed>
validateDomain()  : domainNameInterface

Constants

ICANN_DOMAINS

private mixed ICANN_DOMAINS = 'ICANN_DOMAINS'

PRIVATE_DOMAINS

private mixed PRIVATE_DOMAINS = 'PRIVATE_DOMAINS'

PSL_SECTION

private mixed PSL_SECTION = ['ICANN' => ['BEGIN' => self::ICANN_DOMAINS, 'END' => ''], 'PRIVATE' => ['BEGIN' => self::PRIVATE_DOMAINS, 'END' => '']]

REGEX_PSL_SECTION

private mixed REGEX_PSL_SECTION = ',^// ===(?<point>BEGIN|END) (?<type>ICANN|PRIVATE) DOMAINS===,'

Properties

$rules

private array<string|int, mixed> $rules

Methods

__set_state()

public static __set_state(array<string|int, mixed> $properties) : self
Parameters
$properties : array<string|int, mixed>
Return values
self

fromPath()

public static fromPath(string $path[, mixed $context = null ]) : self
Parameters
$path : string
$context : mixed = null
Return values
self

fromString()

public static fromString(mixed $content) : self
Parameters
$content : mixed
Return values
self

__construct()

private __construct(array<string|int, mixed> $rules) : mixed
Parameters
$rules : array<string|int, mixed>
Return values
mixed

addRule()

private static addRule(array<string|int, mixed> $list, array<string|int, mixed> $ruleParts) : array<string|int, mixed>
Parameters
$list : array<string|int, mixed>
$ruleParts : array<string|int, mixed>
Return values
array<string|int, mixed>

getSection()

private static getSection(string $section, string $line) : string
Parameters
$section : string
$line : string
Return values
string

parse()

private static parse(string $content) : array<string|int, mixed>
Parameters
$content : string
Return values
array<string|int, mixed>

Search results