Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Ramsey\Uuid

Espaces de nommage

 Builder
 
 Codec
 
 Converter
 
 Exception
 
 Generator
 
 Provider
 

Structures de données

class  BinaryUtils
 
class  DegradedUuid
 
class  FeatureSet
 
class  Uuid
 
class  UuidFactory
 
interface  UuidFactoryInterface
 
interface  UuidInterface
 

Fonctions

 v1 ($node=null, $clockSeq=null)
 
 v3 ($ns, $name)
 
 v4 ()
 
 v5 ($ns, $name)
 

Description détaillée

This file is part of the ramsey/uuid library

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Documentation des fonctions

◆ v1()

Ramsey\Uuid\v1 (   $node = null,
  $clockSeq = null 
)

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

Paramètres
int | string | null$nodeA 48-bit number representing the hardware address This number may be represented as an integer or a hexadecimal string.
int | null$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
string
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érences Uuid\uuid1().

◆ v3()

Ramsey\Uuid\v3 (   $ns,
  $name 
)

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
string
Exceptions
InvalidUuidStringException

Références $name, et Uuid\uuid3().

◆ v4()

Ramsey\Uuid\v4 ( )

Generate a version 4 (random) UUID.

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

Références Uuid\uuid4().

◆ v5()

Ramsey\Uuid\v5 (   $ns,
  $name 
)

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
string
Exceptions
InvalidUuidStringException

Références $name, et Uuid\uuid5().