PHP Класс LdapTools\Security\GUID

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$guid The string representation of the GUID.
$guidSections The guid structure in order by section to parse using substr().
$octetSections The hexadecimal octet order based on string position.

Открытые методы

Метод Описание
__construct ( string $guid )
__toString ( ) : string
toBinary ( ) : string Get the binary representation of the GUID string.
toString ( ) : string Get the friend string form of the GUID.

Защищенные методы

Метод Описание
decodeFromBinary ( string $guid )
parseSection ( $hex, array $sections, boolean $octet = false ) : string Return the specified section of the hexadecimal string.

Описание методов

__construct() публичный Метод

public __construct ( string $guid )
$guid string

__toString() публичный Метод

public __toString ( ) : string
Результат string

decodeFromBinary() защищенный Метод

protected decodeFromBinary ( string $guid )
$guid string

parseSection() защищенный Метод

Return the specified section of the hexadecimal string.
protected parseSection ( $hex, array $sections, boolean $octet = false ) : string
$hex string The full hex string.
$sections array An array of start and length (unless octet is true, then length is always 2).
$octet boolean Whether this is for octet string form.
Результат string The concatenated sections in upper-case.

toBinary() публичный Метод

Get the binary representation of the GUID string.
public toBinary ( ) : string
Результат string

toString() публичный Метод

Get the friend string form of the GUID.
public toString ( ) : string
Результат string

Описание свойств

$guid защищенное свойство

The string representation of the GUID.
protected $guid

$guidSections защищенное свойство

The guid structure in order by section to parse using substr().
protected $guidSections

$octetSections защищенное свойство

The hexadecimal octet order based on string position.
protected $octetSections