ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.ContentIdGenerator.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\COPage\ID
;
22
26
class
ContentIdGenerator
implements
ContentIdGeneratorInterface
27
{
28
public
function
__construct
()
29
{
30
}
31
32
public
function
generate
(): string
33
{
34
$random = new \Random\Randomizer();
35
return
md5((
string
) ($random->getInt(1, 9999999) + str_replace(
" "
,
""
, (
string
) microtime())));
36
}
37
}
ILIAS\COPage\ID
Definition:
class.ContentIdGenerator.php:21
ILIAS\COPage\ID\ContentIdGenerator
Definition:
class.ContentIdGenerator.php:26
ILIAS\COPage\ID\ContentIdGeneratorInterface
Definition:
interface.ContentIdGeneratorInterface.php:26
ILIAS\COPage\ID\ContentIdGenerator\generate
generate()
Definition:
class.ContentIdGenerator.php:32
ILIAS\COPage\ID\ContentIdGenerator\__construct
__construct()
Definition:
class.ContentIdGenerator.php:28
components
ILIAS
COPage
ID
class.ContentIdGenerator.php
Generated on Wed Sep 3 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)