Class Horde_Support_Guid
Class for generating GUIDs. Usage:
$uid = (string)new Horde_Support_Guid([$opts = array()]);
Copyright 2009-2012 Horde LLC (http://www.horde.org/)
Methods summary
public
|
#
__construct( array $opts = array() )
New GUID.
Parameters
- $opts
- Additional options:
<pre><span class="php-quote">'prefix'</span> - (string) A prefix to add between the <span class="php-keyword2">date</span> string <span class="php-keyword1">and</span> the
random string.
<span class="php-keyword1">DEFAULT</span>: NONE
<span class="php-quote">'server'</span> - (string) The server name.
<span class="php-keyword1">DEFAULT</span>: <span class="php-var">$_SERVER</span>[<span class="php-quote">'SERVER_NAME'</span>] (<span class="php-keyword1">or</span> <span class="php-quote">'localhost'</span>)</pre>
|
public
|
#
generate( array $opts = array() )
Generates a GUID.
Parameters
- $opts
- Additional options:
<pre><span class="php-quote">'prefix'</span> - (string) A prefix to add between the <span class="php-keyword2">date</span> string <span class="php-keyword1">and</span> the
random string.
<span class="php-keyword1">DEFAULT</span>: NONE
<span class="php-quote">'server'</span> - (string) The server name.
<span class="php-keyword1">DEFAULT</span>: <span class="php-var">$_SERVER</span>[<span class="php-quote">'SERVER_NAME'</span>] (<span class="php-keyword1">or</span> <span class="php-quote">'localhost'</span>)</pre>
|
public
string
|
|