[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
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: | 108 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
UuidFactoryInterface:: (7 methods):
uuid1()
uuid3()
uuid4()
uuid5()
fromBytes()
fromString()
fromInteger()
Interface: UuidFactoryInterface - X-Ref
UuidFactoryInterface defines common functionality all `UuidFactory` instancesuuid1($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: UuidInterface |
uuid3($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: UuidInterface |
uuid4() X-Ref |
Generate a version 4 (random) UUID. return: UuidInterface |
uuid5($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: UuidInterface |
fromBytes($bytes) X-Ref |
Creates a UUID from a byte string. param: string $bytes A 16-byte string representation of a UUID return: UuidInterface |
fromString($uuid) X-Ref |
Creates a UUID from the string standard representation param: string $uuid A string representation of a UUID return: UuidInterface |
fromInteger($integer) X-Ref |
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: mixed $integer The integer to use when creating a `Uuid` from an return: UuidInterface |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |