ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\COPage\ID\ContentIdGenerator Class Reference
+ Inheritance diagram for ILIAS\COPage\ID\ContentIdGenerator:
+ Collaboration diagram for ILIAS\COPage\ID\ContentIdGenerator:

Public Member Functions

 __construct ()
 
 generate ()
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.ContentIdGenerator.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\COPage\ID\ContentIdGenerator::__construct ( )

Definition at line 28 of file class.ContentIdGenerator.php.

29  {
30  }

Member Function Documentation

◆ generate()

ILIAS\COPage\ID\ContentIdGenerator::generate ( )

Implements ILIAS\COPage\ID\ContentIdGeneratorInterface.

Definition at line 32 of file class.ContentIdGenerator.php.

32  : string
33  {
34  $random = new \Random\Randomizer();
35  return md5((string) ($random->getInt(1, 9999999) + str_replace(" ", "", (string) microtime())));
36  }

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