Uuid generating by querying it from the Contao database class.

 Methods

Create a new instance.

__construct(\Database $database) 

Parameters

$database

\Database

The database to use for uuid generating.

Generate an id.

generate() : string

Returns

string

The amount of storage space an id of this type needs.

getSize() : int

Returns

int

 Properties

 

The database to use.

$database : \Database