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
}
ilTermsOfServiceEntityFactory
Class ilTermsOfServiceEntityFactory.
Definition:
class.ilTermsOfServiceEntityFactory.php:8
ilTermsOfServiceEntityFactory\getByName
getByName(string $name)
Definition:
class.ilTermsOfServiceEntityFactory.php:15
ilTermsOfServiceAcceptanceEntity
Class ilTermsOfServiceAcceptanceEntity.
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:8
$name
$name
Definition:
client_example.php:35
php
Services
TermsOfService
classes
class.ilTermsOfServiceEntityFactory.php
Generated on Thu Jan 30 2025 19:02:06 for ILIAS by
1.8.13 (using
Doxyfile
)