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

Fonctions membres publiques

 generate ($node=null, $clockSeq=null)
 

Description détaillée

TimeGeneratorInterface provides functionality to generate strings of binary data for version 1 UUIDs based on a host ID, sequence number, and the current time

Documentation des fonctions membres

◆ generate()

generate (   $node = null,
  $clockSeq = null 
)

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
string A binary 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

Implémenté dans DefaultTimeGenerator, et PeclUuidTimeGenerator.


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