Documentation

Horde_Support_Guid
in package

Class for generating GUIDs. Usage:

$uid = (string)new Horde_Support_Guid([$opts = array()]);

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

Tags
category

Horde

license

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

Table of Contents

$_guid  : string
Generated GUID.
__construct()  : mixed
New GUID.
__toString()  : string
Cooerce to string.
generate()  : mixed
Generates a GUID.

Properties

$_guid

Generated GUID.

private string $_guid

Methods

__construct()

New GUID.

public __construct([array<string|int, mixed> $opts = array() ]) : mixed
Parameters
$opts : array<string|int, mixed> = array()

Additional options:

'prefix' - (string) A prefix to add between the date string and the
           random string.
           DEFAULT: NONE
'server' - (string) The server name.
           DEFAULT: $_SERVER['SERVER_NAME'] (or 'localhost')
Return values
mixed

__toString()

Cooerce to string.

public __toString() : string
Return values
string

generate()

Generates a GUID.

public generate([array<string|int, mixed> $opts = array() ]) : mixed
Parameters
$opts : array<string|int, mixed> = array()

Additional options:

'prefix' - (string) A prefix to add between the date string and the
           random string.
           DEFAULT: NONE
'server' - (string) The server name.
           DEFAULT: $_SERVER['SERVER_NAME'] (or 'localhost')
Return values
mixed

Search results