HumHub Documentation (unofficial)

DomainLiteral extends PartParser
in package

Table of Contents

Constants

IPV4_REGEX  = '/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/'
OBSOLETE_WARNINGS  = [\Egulias\EmailValidator\EmailLexer::INVALID, \Egulias\EmailValidator\EmailLexer::C_DEL, \Egulias\EmailValidator\EmailLexer::S_LF, \Egulias\EmailValidator\EmailLexer::S_BACKSLASH]

Properties

$lexer  : EmailLexer
$warnings  : array<string|int, mixed>

Methods

__construct()  : mixed
checkIPV6Tag()  : void
convertIPv4ToIPv6()  : string
getWarnings()  : array<string|int, Warning>
parse()  : Result
checkConsecutiveDots()  : Result
checkIPV4Tag()  : bool
escaped()  : bool
parseFWS()  : Result
addObsoleteWarnings()  : void
addTagWarnings()  : void

Constants

IPV4_REGEX

public mixed IPV4_REGEX = '/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/'

OBSOLETE_WARNINGS

public mixed OBSOLETE_WARNINGS = [\Egulias\EmailValidator\EmailLexer::INVALID, \Egulias\EmailValidator\EmailLexer::C_DEL, \Egulias\EmailValidator\EmailLexer::S_LF, \Egulias\EmailValidator\EmailLexer::S_BACKSLASH]

Properties

$warnings

protected array<string|int, mixed> $warnings = []

Methods

checkIPV6Tag()

public checkIPV6Tag(string $addressLiteral[, int $maxGroups = 8 ]) : void
Parameters
$addressLiteral : string
$maxGroups : int = 8

convertIPv4ToIPv6()

public convertIPv4ToIPv6(string $addressLiteralIPv4) : string
Parameters
$addressLiteralIPv4 : string
Return values
string

checkIPV4Tag()

protected checkIPV4Tag(string $addressLiteral) : bool
Parameters
$addressLiteral : string
Return values
bool

escaped()

protected escaped() : bool
Return values
bool

        
On this page

Search results