[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/ramsey/uuid/src/ -> functions.php (summary)

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.

Copyright: Copyright (c) Ben Ramsey <[email protected]>
License: http://opensource.org/licenses/MIT MIT
File Size: 78 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  v1()
  v3()
  v4()
  v5()

Functions
Functions that are not part of a class:

v1($node = null, $clockSeq = null)   X-Ref
Generate a version 1 UUID from a host ID, sequence number, and the current time.

param: int|string|null $node A 48-bit number representing the hardware address
param: int|null $clockSeq A 14-bit number used to help avoid duplicates that
return: string

v3($ns, $name)   X-Ref
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: string|UuidInterface $ns The UUID namespace in which to create the named UUID
param: string $name The name to create a UUID for
return: string

v4()   X-Ref
Generate a version 4 (random) UUID.

return: string

v5($ns, $name)   X-Ref
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: string|UuidInterface $ns The UUID namespace in which to create the named UUID
param: string $name The name to create a UUID for
return: string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer