Skip to content

Sabre VObject UUIDUtil

Evert Pot edited this page Sep 1, 2014 · 2 revisions

Sabre\VObject\UUIDUtil

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.

  • Class name: UUIDUtil
  • Namespace: Sabre\VObject

Methods

getUUID

string Sabre\VObject\UUIDUtil::getUUID()

Returns a pseudo-random v4 UUID

This function is based on a comment by Andrew Moore on php.net

  • Visibility: public
  • This method is static.

validateUUID

boolean Sabre\VObject\UUIDUtil::validateUUID(string $uuid)

Checks if a string is a valid UUID.

  • Visibility: public
  • This method is static.

Arguments

  • $uuid string
Clone this wiki locally