Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Uuid
+ Graphe d'héritage de Uuid:

Fonctions membres publiques

 __construct (array $fields, NumberConverterInterface $converter, CodecInterface $codec)
 
 __toString ()
 
 jsonSerialize ()
 
 serialize ()
 
 __serialize ()
 
 unserialize ($serialized)
 
 __unserialize (array $serialized)
 
 compareTo (UuidInterface $other)
 
 equals ($other)
 
 getBytes ()
 
 getClockSeqHiAndReserved ()
 
 getClockSeqHiAndReservedHex ()
 
 getClockSeqLow ()
 
 getClockSeqLowHex ()
 
 getClockSequence ()
 
 getClockSequenceHex ()
 
 getNumberConverter ()
 
 getDateTime ()
 
 getFields ()
 
 getFieldsHex ()
 
 getHex ()
 
 getInteger ()
 
 getLeastSignificantBits ()
 
 getLeastSignificantBitsHex ()
 
 getMostSignificantBits ()
 
 getMostSignificantBitsHex ()
 
 getNode ()
 
 getNodeHex ()
 
 getTimeHiAndVersion ()
 
 getTimeHiAndVersionHex ()
 
 getTimeLow ()
 
 getTimeLowHex ()
 
 getTimeMid ()
 
 getTimeMidHex ()
 
 getTimestamp ()
 
 getTimestampHex ()
 
 getUrn ()
 
 getVariant ()
 
 getVersion ()
 
 toString ()
 

Fonctions membres publiques statiques

static getFactory ()
 
static setFactory (UuidFactoryInterface $factory)
 
static fromBytes ($bytes)
 
static fromString ($name)
 
static fromInteger ($integer)
 
static isValid ($uuid)
 
static uuid1 ($node=null, $clockSeq=null)
 
static uuid3 ($ns, $name)
 
static uuid4 ()
 
static uuid5 ($ns, $name)
 

Champs de données

const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
 
const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
 
const NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8'
 
const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8'
 
const NIL = '00000000-0000-0000-0000-000000000000'
 
const RESERVED_NCS = 0
 
const RFC_4122 = 2
 
const RESERVED_MICROSOFT = 6
 
const RESERVED_FUTURE = 7
 
const VALID_PATTERN = '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$'
 
const UUID_TYPE_TIME = 1
 
const UUID_TYPE_IDENTIFIER = 2
 
const UUID_TYPE_HASH_MD5 = 3
 
const UUID_TYPE_RANDOM = 4
 
const UUID_TYPE_HASH_SHA1 = 5
 

Attributs protégés

 $codec
 
 $fields
 
 $converter
 

Attributs privés statiques

static $factory = null
 

Description détaillée

Represents a universally unique identifier (UUID), according to RFC 4122.

This class provides immutable UUID objects (the Uuid class) and the static methods uuid1(), uuid3(), uuid4(), and uuid5() for generating version 1, 3, 4, and 5 UUIDs as specified in RFC 4122.

If all you want is a unique ID, you should probably call uuid1() or uuid4(). Note that uuid1() may compromise privacy since it creates a UUID containing the computer’s network address. uuid4() creates a random UUID.

http://en.wikipedia.org/wiki/Universally_unique_identifier http://docs.python.org/3/library/uuid.html http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( array  $fields,
NumberConverterInterface  $converter,
CodecInterface  $codec 
)

Creates a universally unique identifier (UUID) from an array of fields.

Unless you're making advanced use of this library to generate identifiers that deviate from RFC 4122, you probably do not want to instantiate a UUID directly. Use the static methods, instead:

$timeBasedUuid = Uuid::uuid1();
$namespaceMd5Uuid = Uuid::uuid3(Uuid::NAMESPACE_URL, 'http://php.net/');
$randomUuid = Uuid::uuid4();
$namespaceSha1Uuid = Uuid::uuid5(Uuid::NAMESPACE_URL, 'http://php.net/');
Paramètres
array$fieldsAn array of fields from which to construct a UUID; see {
Voir également
::getFieldsHex()} for array structure.
Paramètres
NumberConverterInterface$converterThe number converter to use for converting hex values to/from integers.
CodecInterface$codecThe codec to use when encoding or decoding UUID strings.

Références Uuid\$codec, Uuid\$converter, Uuid\$fields, et fields.

Documentation des fonctions membres

◆ __serialize()

__serialize ( )
Renvoie
array{string: string}

Références Uuid\toString().

◆ __toString()

__toString ( )

Converts this UUID object to a string when the object is used in any string context.

Renvoie
string http://www.php.net/manual/en/language.oop5.magic.php#object.tostring

Références Uuid\toString().

◆ __unserialize()

__unserialize ( array  $serialized)
Paramètres
array{stringstring} $serialized
Renvoie
void
Exceptions
InvalidUuidStringException

Références Uuid\unserialize().

◆ compareTo()

compareTo ( UuidInterface  $other)

Compares this UUID to the specified UUID.

The first of two UUIDs is greater than the second if the most significant field in which the UUIDs differ is greater for the first UUID.

  • Q. What's the value of being able to sort UUIDs?
  • A. Use them as keys in a B-Tree or similar mapping.
Paramètres
UuidInterface$otherUUID to which this UUID is compared
Renvoie
int -1, 0 or 1 as this UUID is less than, equal to, or greater than $uuid

Implémente UuidInterface.

Références UuidInterface\getLeastSignificantBitsHex(), Uuid\getLeastSignificantBitsHex(), UuidInterface\getMostSignificantBitsHex(), et Uuid\getMostSignificantBitsHex().

Référencé par Uuid\equals().

◆ equals()

equals (   $other)

Compares this object to the specified object.

The result is true if and only if the argument is not null, is a UUID object, has the same variant, and contains the same value, bit for bit, as this UUID.

Paramètres
object$other
Renvoie
bool True if $other is equal to this UUID

Implémente UuidInterface.

Références Uuid\compareTo().

◆ fromBytes()

static fromBytes (   $bytes)
static

Creates a UUID from a byte string.

Paramètres
string$bytes
Renvoie
UuidInterface
Exceptions
InvalidUuidStringException
InvalidArgumentException

Référencé par AttestationObjectLoader\load().

◆ fromInteger()

static fromInteger (   $integer)
static

Creates a UUID from a 128-bit integer string.

Paramètres
string$integerString representation of 128-bit integer
Renvoie
UuidInterface
Exceptions
UnsatisfiedDependencyExceptionif Moontoast\Math\BigNumber is not present
InvalidUuidStringException

◆ fromString()

static fromString (   $name)
static

Creates a UUID from the string standard representation.

Paramètres
string$nameA string that specifies a UUID
Renvoie
UuidInterface
Exceptions
InvalidUuidStringException

Références $name.

◆ getBytes()

getBytes ( )

Returns the UUID as a 16-byte string (containing the six integer fields in big-endian byte order).

Renvoie
string

Implémente UuidInterface.

Références $this.

◆ getClockSeqHiAndReserved()

getClockSeqHiAndReserved ( )

Returns the high field of the clock sequence multiplexed with the variant (bits 65-72 of the UUID).

Renvoie
int Unsigned 8-bit integer value of clock_seq_hi_and_reserved

Références Uuid\getClockSeqHiAndReservedHex().

Référencé par Uuid\getClockSequence(), Uuid\getFields(), et Uuid\getVariant().

◆ getClockSeqHiAndReservedHex()

getClockSeqHiAndReservedHex ( )

Returns the high field of the clock sequence multiplexed with the variant (bits 65-72 of the UUID).

Renvoie
string Hexadecimal value of clock_seq_hi_and_reserved

Implémente UuidInterface.

Références fields.

Référencé par Uuid\getClockSeqHiAndReserved().

◆ getClockSeqLow()

getClockSeqLow ( )

Returns the low field of the clock sequence (bits 73-80 of the UUID).

Renvoie
int Unsigned 8-bit integer value of clock_seq_low

Références Uuid\getClockSeqLowHex().

Référencé par Uuid\getClockSequence(), et Uuid\getFields().

◆ getClockSeqLowHex()

getClockSeqLowHex ( )

Returns the low field of the clock sequence (bits 73-80 of the UUID).

Renvoie
string Hexadecimal value of clock_seq_low

Implémente UuidInterface.

Références fields.

Référencé par Uuid\getClockSeqLow().

◆ getClockSequence()

getClockSequence ( )

Returns the clock sequence value associated with this UUID.

For UUID version 1, the clock sequence is used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes.

For UUID version 3 or 5, the clock sequence is a 14-bit value constructed from a name as described in RFC 4122, Section 4.3.

For UUID version 4, clock sequence is a randomly or pseudo-randomly generated 14-bit value as described in RFC 4122, Section 4.4.

Renvoie
int Unsigned 14-bit integer value of clock sequence http://tools.ietf.org/html/rfc4122#section-4.1.5

Références Uuid\getClockSeqHiAndReserved(), et Uuid\getClockSeqLow().

Référencé par Uuid\getClockSequenceHex().

◆ getClockSequenceHex()

getClockSequenceHex ( )

Returns the clock sequence value associated with this UUID.

Renvoie
string Hexadecimal value of clock sequence

Implémente UuidInterface.

Références Uuid\getClockSequence().

◆ getDateTime()

getDateTime ( )

Returns a PHP DateTime object representing the timestamp associated with this UUID.The timestamp value is only meaningful in a time-based UUID, which has version type 1. If this UUID is not a time-based UUID then this method throws UnsupportedOperationException.

Renvoie
DateTime A PHP DateTime representation of the date
Exceptions
UnsupportedOperationExceptionIf this UUID is not a version 1 UUID
UnsatisfiedDependencyExceptionif called in a 32-bit system and Moontoast\Math\BigNumber is not present

Implémente UuidInterface.

Références Uuid\getTimestamp(), et Uuid\getVersion().

◆ getFactory()

static getFactory ( )
static

Returns the currently set factory used to create UUIDs.

Renvoie
UuidFactoryInterface

◆ getFields()

getFields ( )

Returns an array of the fields of this UUID, with keys named according to the RFC 4122 names for the fields.

  • time_low: The low field of the timestamp, an unsigned 32-bit integer
  • time_mid: The middle field of the timestamp, an unsigned 16-bit integer
  • time_hi_and_version: The high field of the timestamp multiplexed with the version number, an unsigned 16-bit integer
  • clock_seq_hi_and_reserved: The high field of the clock sequence multiplexed with the variant, an unsigned 8-bit integer
  • clock_seq_low: The low field of the clock sequence, an unsigned 8-bit integer
  • node: The spatially unique node identifier, an unsigned 48-bit integer
Renvoie
array The UUID fields represented as integer values http://tools.ietf.org/html/rfc4122#section-4.1.2

Références Uuid\getClockSeqHiAndReserved(), Uuid\getClockSeqLow(), Uuid\getNode(), Uuid\getTimeHiAndVersion(), Uuid\getTimeLow(), et Uuid\getTimeMid().

◆ getFieldsHex()

getFieldsHex ( )

Returns an array of the fields of this UUID, with keys named according to the RFC 4122 names for the fields.

  • time_low: The low field of the timestamp, an unsigned 32-bit integer
  • time_mid: The middle field of the timestamp, an unsigned 16-bit integer
  • time_hi_and_version: The high field of the timestamp multiplexed with the version number, an unsigned 16-bit integer
  • clock_seq_hi_and_reserved: The high field of the clock sequence multiplexed with the variant, an unsigned 8-bit integer
  • clock_seq_low: The low field of the clock sequence, an unsigned 8-bit integer
  • node: The spatially unique node identifier, an unsigned 48-bit integer
Renvoie
array The UUID fields represented as hexadecimal values

Implémente UuidInterface.

Références Uuid\$fields.

◆ getHex()

getHex ( )

Returns the hexadecimal value of the UUID.

Renvoie
string

Implémente UuidInterface.

Références Uuid\toString().

Référencé par Uuid\getInteger().

◆ getInteger()

getInteger ( )

Returns the integer value of the UUID, converted to an appropriate number representation.

Renvoie
mixed Converted representation of the unsigned 128-bit integer value
Exceptions
UnsatisfiedDependencyExceptionif Moontoast\Math\BigNumber is not present

Implémente UuidInterface.

Références Uuid\getHex().

◆ getLeastSignificantBits()

getLeastSignificantBits ( )

Returns the least significant 64 bits of this UUID's 128 bit value.

Renvoie
mixed Converted representation of the unsigned 64-bit integer value
Exceptions
UnsatisfiedDependencyExceptionif Moontoast\Math\BigNumber is not present

Références Uuid\getLeastSignificantBitsHex().

◆ getLeastSignificantBitsHex()

getLeastSignificantBitsHex ( )

Returns the least significant 64 bits of this UUID's 128 bit value.

Renvoie
string Hexadecimal value of least significant bits

Implémente UuidInterface.

Références fields.

Référencé par Uuid\compareTo(), et Uuid\getLeastSignificantBits().

◆ getMostSignificantBits()

getMostSignificantBits ( )

Returns the most significant 64 bits of this UUID's 128 bit value.

Renvoie
mixed Converted representation of the unsigned 64-bit integer value
Exceptions
UnsatisfiedDependencyExceptionif Moontoast\Math\BigNumber is not present

Références Uuid\getMostSignificantBitsHex().

◆ getMostSignificantBitsHex()

getMostSignificantBitsHex ( )

Returns the most significant 64 bits of this UUID's 128 bit value.

Renvoie
string Hexadecimal value of most significant bits

Implémente UuidInterface.

Références fields.

Référencé par Uuid\compareTo(), et Uuid\getMostSignificantBits().

◆ getNode()

getNode ( )

Returns the node value associated with this UUID

For UUID version 1, the node field consists of an IEEE 802 MAC address, usually the host address. For systems with multiple IEEE 802 addresses, any available one can be used. The lowest addressed octet (octet number 10) contains the global/local bit and the unicast/multicast bit, and is the first octet of the address transmitted on an 802.3 LAN.

For systems with no IEEE address, a randomly or pseudo-randomly generated value may be used; see RFC 4122, Section 4.5. The multicast bit must be set in such addresses, in order that they will never conflict with addresses obtained from network cards.

For UUID version 3 or 5, the node field is a 48-bit value constructed from a name as described in RFC 4122, Section 4.3.

For UUID version 4, the node field is a randomly or pseudo-randomly generated 48-bit value as described in RFC 4122, Section 4.4.

Renvoie
int Unsigned 48-bit integer value of node http://tools.ietf.org/html/rfc4122#section-4.1.6

Références Uuid\getNodeHex().

Référencé par Uuid\getFields().

◆ getNodeHex()

getNodeHex ( )

Returns the node value associated with this UUID

For UUID version 1, the node field consists of an IEEE 802 MAC address, usually the host address. For systems with multiple IEEE 802 addresses, any available one can be used. The lowest addressed octet (octet number 10) contains the global/local bit and the unicast/multicast bit, and is the first octet of the address transmitted on an 802.3 LAN.

For systems with no IEEE address, a randomly or pseudo-randomly generated value may be used; see RFC 4122, Section 4.5. The multicast bit must be set in such addresses, in order that they will never conflict with addresses obtained from network cards.

For UUID version 3 or 5, the node field is a 48-bit value constructed from a name as described in RFC 4122, Section 4.3.

For UUID version 4, the node field is a randomly or pseudo-randomly generated 48-bit value as described in RFC 4122, Section 4.4.

Renvoie
string Hexadecimal value of node http://tools.ietf.org/html/rfc4122#section-4.1.6

Implémente UuidInterface.

Références fields.

Référencé par Uuid\getNode().

◆ getNumberConverter()

getNumberConverter ( )

Returns the number converter to use for converting hex values to/from integers.

Renvoie
NumberConverterInterface

Implémente UuidInterface.

Références Uuid\$converter.

◆ getTimeHiAndVersion()

getTimeHiAndVersion ( )

Returns the high field of the timestamp multiplexed with the version number (bits 49-64 of the UUID).

Renvoie
int Unsigned 16-bit integer value of time_hi_and_version

Références Uuid\getTimeHiAndVersionHex().

Référencé par Uuid\getFields(), Uuid\getTimestampHex(), et Uuid\getVersion().

◆ getTimeHiAndVersionHex()

getTimeHiAndVersionHex ( )

Returns the high field of the timestamp multiplexed with the version number (bits 49-64 of the UUID).

Renvoie
string Hexadecimal value of time_hi_and_version

Implémente UuidInterface.

Références fields.

Référencé par Uuid\getTimeHiAndVersion().

◆ getTimeLow()

getTimeLow ( )

Returns the low field of the timestamp (the first 32 bits of the UUID).

Renvoie
int Unsigned 32-bit integer value of time_low

Références Uuid\getTimeLowHex().

Référencé par Uuid\getFields().

◆ getTimeLowHex()

getTimeLowHex ( )

Returns the low field of the timestamp (the first 32 bits of the UUID).

Renvoie
string Hexadecimal value of time_low

Implémente UuidInterface.

Références fields.

Référencé par Uuid\getTimeLow().

◆ getTimeMid()

getTimeMid ( )

Returns the middle field of the timestamp (bits 33-48 of the UUID).

Renvoie
int Unsigned 16-bit integer value of time_mid

Références Uuid\getTimeMidHex().

Référencé par Uuid\getFields().

◆ getTimeMidHex()

getTimeMidHex ( )

Returns the middle field of the timestamp (bits 33-48 of the UUID).

Renvoie
string Hexadecimal value of time_mid

Implémente UuidInterface.

Références fields.

Référencé par Uuid\getTimeMid().

◆ getTimestamp()

getTimestamp ( )

Returns the timestamp value associated with this UUID.

The 60 bit timestamp value is constructed from the time_low, time_mid, and time_hi fields of this UUID. The resulting timestamp is measured in 100-nanosecond units since midnight, October 15, 1582 UTC.

The timestamp value is only meaningful in a time-based UUID, which has version type 1. If this UUID is not a time-based UUID then this method throws UnsupportedOperationException.

Renvoie
int Unsigned 60-bit integer value of the timestamp
Exceptions
UnsupportedOperationExceptionIf this UUID is not a version 1 UUID http://tools.ietf.org/html/rfc4122#section-4.1.4

Références Uuid\getTimestampHex(), et Uuid\getVersion().

Référencé par Uuid\getDateTime().

◆ getTimestampHex()

getTimestampHex ( )

Returns the timestamp value associated with this UUID.The 60 bit timestamp value is constructed from the time_low, time_mid, and time_hi fields of this UUID. The resulting timestamp is measured in 100-nanosecond units since midnight, October 15, 1582 UTC.The timestamp value is only meaningful in a time-based UUID, which has version type 1. If this UUID is not a time-based UUID then this method throws UnsupportedOperationException.

Renvoie
string Hexadecimal value of the timestamp
Exceptions
UnsupportedOperationExceptionIf this UUID is not a version 1 UUID http://tools.ietf.org/html/rfc4122#section-4.1.4

Implémente UuidInterface.

Références fields, Uuid\getTimeHiAndVersion(), et Uuid\getVersion().

Référencé par DegradedUuid\getDateTime(), et Uuid\getTimestamp().

◆ getUrn()

getUrn ( )

Returns the string representation of the UUID as a URN.

Renvoie
string http://en.wikipedia.org/wiki/Uniform_Resource_Name

Implémente UuidInterface.

Références Uuid\toString().

◆ getVariant()

getVariant ( )

Returns the variant number associated with this UUID.

The variant number describes the layout of the UUID. The variant number has the following meaning:

  • 0 - Reserved for NCS backward compatibility
  • 2 - The RFC 4122 variant (used by this class)
  • 6 - Reserved, Microsoft Corporation backward compatibility
  • 7 - Reserved for future definition
Renvoie
int http://tools.ietf.org/html/rfc4122#section-4.1.1

Implémente UuidInterface.

Références Uuid\getClockSeqHiAndReserved().

Référencé par Uuid\getVersion().

◆ getVersion()

getVersion ( )

Returns the version number associated with this UUID.

The version number describes how this UUID was generated and has the following meaning:

  • 1 - Time-based UUID
  • 2 - DCE security UUID
  • 3 - Name-based UUID hashed with MD5
  • 4 - Randomly generated UUID
  • 5 - Name-based UUID hashed with SHA-1

Returns null if this UUID is not an RFC 4122 variant, since version is only meaningful for this variant.

Renvoie
int|null http://tools.ietf.org/html/rfc4122#section-4.1.3

Implémente UuidInterface.

Références Uuid\getTimeHiAndVersion(), Uuid\getVariant(), et null.

Référencé par DegradedUuid\getDateTime(), Uuid\getDateTime(), DegradedUuid\getTimestamp(), Uuid\getTimestamp(), et Uuid\getTimestampHex().

◆ isValid()

static isValid (   $uuid)
static

Check if a string is a valid UUID.

Paramètres
string$uuidThe string UUID to test
Renvoie
boolean

Référencé par StringCodec\extractComponents().

◆ jsonSerialize()

jsonSerialize ( )

Converts this UUID object to a string when the object is serialized with json_encode()

Renvoie
string http://php.net/manual/en/class.jsonserializable.php

Références Uuid\toString().

◆ serialize()

serialize ( )

Converts this UUID object to a string when the object is serialized with serialize()

Renvoie
string http://php.net/manual/en/class.serializable.php

Références Uuid\toString().

◆ setFactory()

static setFactory ( UuidFactoryInterface  $factory)
static

Sets the factory used to create UUIDs.

Paramètres
UuidFactoryInterface$factory

Références Uuid\$factory.

◆ toString()

toString ( )

Converts this UUID into a string representation.

Renvoie
string

Implémente UuidInterface.

Références $this.

Référencé par Uuid\__serialize(), Uuid\__toString(), Uuid\getHex(), Uuid\getUrn(), Uuid\jsonSerialize(), et Uuid\serialize().

◆ unserialize()

unserialize (   $serialized)

Re-constructs the object from its serialized form.

Paramètres
string$serializedInvalidUuidStringException

Références fields.

Référencé par Uuid\__unserialize().

◆ uuid1()

static uuid1 (   $node = null,
  $clockSeq = null 
)
static

Generate a version 1 UUID from a host ID, sequence number, and the current time.

Paramètres
int | string$nodeA 48-bit number representing the hardware address This number may be represented as an integer or a hexadecimal string.
int$clockSeqA 14-bit number used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes.
Renvoie
UuidInterface
Exceptions
UnsatisfiedDependencyExceptionif called on a 32-bit system and Moontoast\Math\BigNumber is not present
InvalidArgumentException
Exceptionif it was not possible to gather sufficient entropy

Référencé par Ramsey\Uuid\v1().

◆ uuid3()

static uuid3 (   $ns,
  $name 
)
static

Generate a version 3 UUID based on the MD5 hash of a namespace identifier (which is a UUID) and a name (which is a string).

Paramètres
string | UuidInterface$nsThe UUID namespace in which to create the named UUID
string$nameThe name to create a UUID for
Renvoie
UuidInterface
Exceptions
InvalidUuidStringException

Références $name.

Référencé par Ramsey\Uuid\v3().

◆ uuid4()

static uuid4 ( )
static

Generate a version 4 (random) UUID.

Renvoie
UuidInterface
Exceptions
UnsatisfiedDependencyExceptionif Moontoast\Math\BigNumber is not present
InvalidArgumentException
Exception

Référencé par Ramsey\Uuid\v4().

◆ uuid5()

static uuid5 (   $ns,
  $name 
)
static

Generate a version 5 UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).

Paramètres
string | UuidInterface$nsThe UUID namespace in which to create the named UUID
string$nameThe name to create a UUID for
Renvoie
UuidInterface
Exceptions
InvalidUuidStringException

Références $name.

Référencé par Ramsey\Uuid\v5().

Documentation des champs

◆ $codec

$codec
protected

Référencé par Uuid\__construct().

◆ $converter

$converter
protected

◆ $factory

$factory = null
staticprivate

Référencé par Uuid\setFactory().

◆ $fields

$fields
protected
Valeur initiale :
= [
'time_low' => '00000000'

Référencé par Uuid\__construct(), et Uuid\getFieldsHex().

◆ NAMESPACE_DNS

const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'

When this namespace is specified, the name string is a fully-qualified domain name. http://tools.ietf.org/html/rfc4122#appendix-C

◆ NAMESPACE_OID

const NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8'

When this namespace is specified, the name string is an ISO OID. http://tools.ietf.org/html/rfc4122#appendix-C

◆ NAMESPACE_URL

const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'

When this namespace is specified, the name string is a URL. http://tools.ietf.org/html/rfc4122#appendix-C

◆ NAMESPACE_X500

const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8'

When this namespace is specified, the name string is an X.500 DN in DER or a text output format. http://tools.ietf.org/html/rfc4122#appendix-C

◆ NIL

const NIL = '00000000-0000-0000-0000-000000000000'

The nil UUID is special form of UUID that is specified to have all 128 bits set to zero. http://tools.ietf.org/html/rfc4122#section-4.1.7

◆ RESERVED_FUTURE

const RESERVED_FUTURE = 7

Reserved for future definition. http://tools.ietf.org/html/rfc4122#section-4.1.1

◆ RESERVED_MICROSOFT

const RESERVED_MICROSOFT = 6

Reserved for Microsoft compatibility. http://tools.ietf.org/html/rfc4122#section-4.1.1

◆ RESERVED_NCS

const RESERVED_NCS = 0

Reserved for NCS compatibility. http://tools.ietf.org/html/rfc4122#section-4.1.1

◆ RFC_4122

const RFC_4122 = 2

Specifies the UUID layout given in RFC 4122. http://tools.ietf.org/html/rfc4122#section-4.1.1

◆ UUID_TYPE_HASH_MD5

const UUID_TYPE_HASH_MD5 = 3

Version 3 (name-based and hashed with MD5) UUID object constant identifier

◆ UUID_TYPE_HASH_SHA1

const UUID_TYPE_HASH_SHA1 = 5

Version 5 (name-based and hashed with SHA1) UUID object constant identifier

◆ UUID_TYPE_IDENTIFIER

const UUID_TYPE_IDENTIFIER = 2

Version 2 (identifier-based) UUID object constant identifier

◆ UUID_TYPE_RANDOM

const UUID_TYPE_RANDOM = 4

Version 4 (random) UUID object constant identifier

◆ UUID_TYPE_TIME

const UUID_TYPE_TIME = 1

Version 1 (time-based) UUID object constant identifier

◆ VALID_PATTERN

const VALID_PATTERN = '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$'

Regular expression pattern for matching a valid UUID of any variant.


La documentation de cette classe a été générée à partir du fichier suivant :