ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
UUID Utility. More...
Static Public Member Functions | |
static | getUUID () |
Returns a pseudo-random v4 UUID. More... | |
static | validateUUID ($uuid) |
Checks if a string is a valid UUID. More... | |
UUID Utility.
This class has static methods to generate and validate UUID's. UUIDs are used a decent amount within various *DAV standards, so it made sense to include it.
Definition at line 16 of file UUIDUtil.php.
|
static |
Returns a pseudo-random v4 UUID.
This function is based on a comment by Andrew Moore on php.net
Definition at line 27 of file UUIDUtil.php.
Referenced by Sabre\VObject\Component\VEvent\getDefaults(), Sabre\VObject\Component\VJournal\getDefaults(), Sabre\VObject\Component\VTodo\getDefaults(), Sabre\VObject\Component\VCard\getDefaults(), Sabre\VObject\UUIDUtilTest\testGetUUID(), and Sabre\VObject\Component\VCard\validate().
|
static |
Checks if a string is a valid UUID.
string | $uuid |
Definition at line 60 of file UUIDUtil.php.
Referenced by Sabre\VObject\UUIDUtilTest\testGetUUID(), and Sabre\VObject\UUIDUtilTest\testValidateUUID().