ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilTermsOfServiceEntityFactory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilTermsOfServiceEntityFactory
9
{
15
public
function
getByName
(
string
$name
) : \
ilTermsOfServiceAcceptanceEntity
16
{
17
switch
(strtolower(
$name
)) {
18
case
'iltermsofserviceacceptanceentity'
:
19
return
new \ilTermsOfServiceAcceptanceEntity();
20
21
default
:
22
throw
new \InvalidArgumentException(
'Entity not supported'
);
23
}
24
}
25
}
php
An exception for terminatinating execution or to throw for unit testing.
ilTermsOfServiceAcceptanceEntity
Class ilTermsOfServiceAcceptanceEntity.
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:9
ilTermsOfServiceEntityFactory
Class ilTermsOfServiceEntityFactory.
Definition:
class.ilTermsOfServiceEntityFactory.php:9
ilTermsOfServiceEntityFactory\getByName
getByName(string $name)
Definition:
class.ilTermsOfServiceEntityFactory.php:15
$name
$name
Definition:
client_example.php:35
Services
TermsOfService
classes
class.ilTermsOfServiceEntityFactory.php
Generated on Thu Oct 2 2025 19:01:58 for ILIAS by
1.9.4 (using
Doxyfile
)