ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\ContentIdGenerator
Definition:
class.ContentIdGenerator.php:27
ILIAS\COPage\ID\ContentIdGenerator\generate
generate()
Definition:
class.ContentIdGenerator.php:32
ILIAS\COPage\ID\ContentIdGenerator\__construct
__construct()
Definition:
class.ContentIdGenerator.php:28
ILIAS\COPage\ID\ContentIdGeneratorInterface
Definition:
interface.ContentIdGeneratorInterface.php:27
ILIAS\COPage\ID
Definition:
class.ContentIdGenerator.php:21
components
ILIAS
COPage
ID
class.ContentIdGenerator.php
Generated on Sat Oct 18 2025 23:02:50 for ILIAS by
1.9.4 (using
Doxyfile
)