Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'interface UuidFactoryInterface
+ Graphe d'héritage de UuidFactoryInterface:

Fonctions membres publiques

 uuid1 ($node=null, $clockSeq=null)
 
 uuid3 ($ns, $name)
 
 uuid4 ()
 
 uuid5 ($ns, $name)
 
 fromBytes ($bytes)
 
 fromString ($uuid)
 
 fromInteger ($integer)
 

Description détaillée

UuidFactoryInterface defines common functionality all UuidFactory instances must implement

Documentation des fonctions membres

◆ fromBytes()

fromBytes (   $bytes)

Creates a UUID from a byte string.

Paramètres
string$bytesA 16-byte string representation of a UUID
Renvoie
UuidInterface
Exceptions
InvalidUuidStringException
InvalidArgumentExceptionif string has not 16 characters

Implémenté dans UuidFactory.

◆ fromInteger()

fromInteger (   $integer)

Creates a Uuid from an integer representation

The integer representation may be a real integer, a string integer, or an integer representation supported by a configured number converter.

Paramètres
mixed$integerThe integer to use when creating a Uuid from an integer; may be of any type understood by the configured number converter
Renvoie
UuidInterface
Exceptions
UnsatisfiedDependencyExceptionif Moontoast\Math\BigNumber is not present
InvalidUuidStringException

Implémenté dans UuidFactory.

◆ fromString()

fromString (   $uuid)

Creates a UUID from the string standard representation

Paramètres
string$uuidA string representation of a UUID
Renvoie
UuidInterface
Exceptions
InvalidUuidStringException

Implémenté dans UuidFactory.

◆ uuid1()

uuid1 (   $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
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

Implémenté dans UuidFactory.

◆ uuid3()

uuid3 (   $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
UuidInterface
Exceptions
InvalidUuidStringException

Implémenté dans UuidFactory.

◆ uuid4()

uuid4 ( )

Generate a version 4 (random) UUID.

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

Implémenté dans UuidFactory.

◆ uuid5()

uuid5 (   $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
UuidInterface
Exceptions
InvalidUuidStringException

Implémenté dans UuidFactory.


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