Overview

Packages

  • Support

Classes

  • Horde_Support_Array
  • Horde_Support_Backtrace
  • Horde_Support_CombineStream
  • Horde_Support_ConsistentHash
  • Horde_Support_Guid
  • Horde_Support_Inflector
  • Horde_Support_Memory
  • Horde_Support_Numerizer
  • Horde_Support_Numerizer_Locale_Base
  • Horde_Support_Numerizer_Locale_De
  • Horde_Support_Numerizer_Locale_Pt
  • Horde_Support_Randomid
  • Horde_Support_Stack
  • Horde_Support_StringStream
  • Horde_Support_Stub
  • Horde_Support_Timer
  • Horde_Support_Uuid
  • Overview
  • Package
  • Class
  • Tree

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

Package: Support
Category: Horde
License: http://www.horde.org/licenses/bsd
Located at Horde/Support/Guid.php
Methods summary
public
# __construct( array $opts = array() )

New GUID.

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.

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
# __toString( )

Cooerce to string.

Cooerce to string.

Returns

string
API documentation generated by ApiGen