\Fubber\UtilUUID

Class that creates UUIDs, and helps with managing them. Simple example:

$uuid = new UUID(); echo $uuid->toString(); // outputs a string representation of the UUID. echo $uuid->toBinary(); // binary representation

Summary

Methods
Properties
Constants
__construct()
toString()
__toString()
toBinary()
binaryToString()
stringToBinary()
No public properties found
No constants found
_createNew()
$uuid
N/A
No private methods found
No private properties found
N/A

Properties

$uuid

$uuid : 

Type

Methods

__construct()

__construct(string  $uuid = NULL, boolean  $isBinary = FALSE) 

Parameters

string $uuid
boolean $isBinary

toString()

toString() : string

Return the UUID as a string

Returns

string

__toString()

__toString() 

toBinary()

toBinary() : string

Return the UUID as a binary string

Returns

string

binaryToString()

binaryToString(string  $uuid) : string

Convert a UUID binary to string

Parameters

string $uuid

Returns

string

stringToBinary()

stringToBinary(string  $uuid) : string

Convert a UUID string to binary

Parameters

string $uuid

Returns

string

_createNew()

_createNew()