Documentation

Horde_Idna
in package

Provide normalized encoding/decoding support for IDNA strings.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2014-2017 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$_backend  : mixed
The backend to use.
decode()  : mixed
encode()  : mixed
_checkForError()  : mixed
Checks if the $idna_info parameter of idn_to_ascii() or idn_to_utf8() contains errors.
_getBackend()  : mixed
Return the IDNA backend.

Properties

$_backend

The backend to use.

protected static mixed $_backend

Methods

decode()

public static decode(mixed $data) : mixed
Parameters
$data : mixed
Tags
throws
Horde_Idna_Exception
Return values
mixed

encode()

public static encode(mixed $data) : mixed
Parameters
$data : mixed
Tags
throws
Horde_Idna_Exception
Return values
mixed

_checkForError()

Checks if the $idna_info parameter of idn_to_ascii() or idn_to_utf8() contains errors.

protected static _checkForError(array<string|int, mixed> $info) : mixed
Parameters
$info : array<string|int, mixed>

Fourth parameter to idn_to_ascii() or idn_to_utf8().

Tags
throws
Horde_Idna_Exception
Return values
mixed

_getBackend()

Return the IDNA backend.

protected static _getBackend() : mixed
Return values
mixed

IDNA backend (false if none available).

Search results