\Horde_Support_Guid

Class for generating GUIDs. Usage:

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

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

Summary

Methods
Properties
Constants
__construct()
generate()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_guid
N/A

Properties

$_guid

$_guid : string

Generated GUID.

Type

string

Methods

__construct()

__construct(array  $opts = array()) 

New GUID.

Parameters

array $opts

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')

generate()

generate(array  $opts = array()) 

Generates a GUID.

Parameters

array $opts

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')

__toString()

__toString() : string

Cooerce to string.

Returns

string