ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilTermsOfServiceEntityFactory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilTermsOfServiceEntityFactory
9
{
15
public
function
getByName
(
$name
)
16
{
17
switch
(strtolower(
$name
)) {
18
case
'iltermsofserviceacceptanceentity'
:
19
require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceAcceptanceEntity.php'
;
20
return
new
ilTermsOfServiceAcceptanceEntity
();
21
22
default
:
23
throw
new
InvalidArgumentException(
'Entity not supported'
);
24
}
25
}
26
}
php
An exception for terminatinating execution or to throw for unit testing.
ilTermsOfServiceAcceptanceEntity
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:9
ilTermsOfServiceEntityFactory
Definition:
class.ilTermsOfServiceEntityFactory.php:9
ilTermsOfServiceEntityFactory\getByName
getByName($name)
Definition:
class.ilTermsOfServiceEntityFactory.php:15
$name
if($format !==null) $name
Definition:
metadata.php:146
Services
TermsOfService
classes
class.ilTermsOfServiceEntityFactory.php
Generated on Tue Sep 30 2025 19:01:19 for ILIAS by
1.9.4 (using
Doxyfile
)