Overview

Namespaces

  • cassandra
  • None
  • PHP
  • phpcassa
    • Batch
    • Connection
    • Index
    • Iterator
    • Schema
      • DataType
    • Util
    • UUID

Classes

  • AbstractColumnFamily
  • ColumnFamily
  • ColumnSlice
  • SuperColumnFamily
  • SystemManager
  • UUID
  • Overview
  • Namespace
  • Class
  • Tree

Class UUID

Namespace: phpcassa
Package: phpcassa
Located at phpcassa/UUID.php
Methods summary
public static string
# uuid1( string $node = null, integer $time = null )

Generate a v1 UUID (timestamp based)

Generate a v1 UUID (timestamp based)

Parameters

$node
string
$node what to use for the MAC portion of the UUID. This will be generated randomly if left as NULL
$time
integer
$time timestamp to use for the UUID. This should be a number of microseconds since the UNIX epoch.

Returns

string
a byte[] representation of a UUID
public static string
# uuid3( mixed $node = null, mixed $namespace = null )

Generate a v3 UUID

Generate a v3 UUID

Returns

string
a byte[] representation of a UUID
public static string
# uuid4( )

Generate a v4 UUID

Generate a v4 UUID

Returns

string
a byte[] representation of a UUID
public static string
# uuid5( mixed $node, mixed $namespace = null )

Generate a v5 UUID

Generate a v5 UUID

Returns

string
a byte[] representation of a UUID
public static
# import( mixed $uuid )

Import an existing UUID.

Import an existing UUID.

public static
# mint( integer $ver = 1, mixed $node = NULL, mixed $ns = NULL, mixed $time = NULL )

Create a new UUID based on provided data.

Create a new UUID based on provided data.

Parameters

$ver
integer
$ver the UUID version to generate.
$node
$ns
$time
public static
# compare( mixed $a, mixed $b )

Compare the binary representations of two UUIDs. The comparison will return true if they are bit-exact, or if neither is valid.

Compare the binary representations of two UUIDs. The comparison will return true if they are bit-exact, or if neither is valid.

public
# __toString( )
public
# __get( mixed $var )
public static
# initRandom( )
public static
# randomBytes( mixed $bytes )
Constants summary
integer MD5 3
#
integer SHA1 5
#
integer clearVer 15
#
integer clearVar 63
#
integer varRes 224
#
integer varMS 192
#
integer varRFC 128
#
integer varNCS 0
#
integer version1 16
#
integer version3 48
#
integer version4 64
#
integer version5 80
#
float interval 0x01b21dd213814000
#
string nsDNS '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
#
string nsURL '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
#
string nsOID '6ba7b812-9dad-11d1-80b4-00c04fd430c8'
#
string nsX500 '6ba7b814-9dad-11d1-80b4-00c04fd430c8'
#
phpcassa API documentation generated by ApiGen 2.8.0