ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilTermsOfServiceEntityFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilTermsOfServiceEntityFactory
26
{
32
public
function
getByName
(
string
$name
):
ilTermsOfServiceAcceptanceEntity
33
{
34
switch
(strtolower($name)) {
35
case
'iltermsofserviceacceptanceentity'
:
36
return
new
ilTermsOfServiceAcceptanceEntity
();
37
38
default
:
39
throw
new
InvalidArgumentException
(
'Entity not supported'
);
40
}
41
}
42
}
ilTermsOfServiceEntityFactory
Class ilTermsOfServiceEntityFactory.
Definition:
class.ilTermsOfServiceEntityFactory.php:25
ilTermsOfServiceEntityFactory\getByName
getByName(string $name)
Definition:
class.ilTermsOfServiceEntityFactory.php:32
$name
if($format !==null) $name
Definition:
metadata.php:247
ilTermsOfServiceAcceptanceEntity
Class ilTermsOfServiceAcceptanceEntity.
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:25
InvalidArgumentException
Services
TermsOfService
classes
class.ilTermsOfServiceEntityFactory.php
Generated on Sun Aug 31 2025 22:02:36 for ILIAS by
1.8.13 (using
Doxyfile
)