ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Data\UUID\Factory Class Reference
+ Collaboration diagram for ILIAS\Data\UUID\Factory:

Public Member Functions

 __construct ()
 
 uuid4 ()
 
 uuid4AsString ()
 
 uuid3 (Uuid|string $namespace, string $name)
 Name-based UUID (version 3, MD5): the same namespace and name always result in the same UUID. More...
 
 uuid3AsString (Uuid|string $namespace, string $name)
 
 fromString (string $uuid)
 

Private Attributes

UuidFactory $uuid_factory
 

Detailed Description

Definition at line 32 of file Factory.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\UUID\Factory::__construct ( )

Definition at line 36 of file Factory.php.

37 {
38 $this->uuid_factory = new UuidFactory();
39 }

Member Function Documentation

◆ fromString()

ILIAS\Data\UUID\Factory::fromString ( string  $uuid)

Definition at line 68 of file Factory.php.

68 : Uuid
69 {
70 return new RamseyUuidWrapper($this->uuid_factory->fromString($uuid));
71 }

References ILIAS\components\ResourceStorage\$uuid.

◆ uuid3()

ILIAS\Data\UUID\Factory::uuid3 ( Uuid|string  $namespace,
string  $name 
)

Name-based UUID (version 3, MD5): the same namespace and name always result in the same UUID.

Parameters
Uuid | string$namespacea UUID, with or without hyphens

Definition at line 56 of file Factory.php.

56 : Uuid
57 {
58 return new RamseyUuidWrapper(
59 $this->uuid_factory->uuid3($namespace instanceof Uuid ? $namespace->toString() : $namespace, $name)
60 );
61 }
toString()
Converts this UUID into a string representation.

References ILIAS\Data\UUID\Uuid\toString().

Referenced by ILIAS\Data\UUID\Factory\uuid3AsString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ uuid3AsString()

ILIAS\Data\UUID\Factory::uuid3AsString ( Uuid|string  $namespace,
string  $name 
)

Definition at line 63 of file Factory.php.

63 : string
64 {
65 return $this->uuid3($namespace, $name)->toString();
66 }
uuid3(Uuid|string $namespace, string $name)
Name-based UUID (version 3, MD5): the same namespace and name always result in the same UUID.
Definition: Factory.php:56

References ILIAS\Data\UUID\Factory\uuid3().

+ Here is the call graph for this function:

◆ uuid4()

ILIAS\Data\UUID\Factory::uuid4 ( )

Definition at line 41 of file Factory.php.

41 : Uuid
42 {
43 return new RamseyUuidWrapper($this->uuid_factory->uuid4());
44 }

Referenced by ILIAS\Data\UUID\Factory\uuid4AsString().

+ Here is the caller graph for this function:

◆ uuid4AsString()

ILIAS\Data\UUID\Factory::uuid4AsString ( )

Definition at line 46 of file Factory.php.

46 : string
47 {
48 return $this->uuid4()->toString();
49 }

References ILIAS\Data\UUID\Factory\uuid4().

+ Here is the call graph for this function:

Field Documentation

◆ $uuid_factory

UuidFactory ILIAS\Data\UUID\Factory::$uuid_factory
private

Definition at line 34 of file Factory.php.


The documentation for this class was generated from the following file: