ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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
{
19
case
'iltermsofserviceacceptanceentity'
:
20
require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceAcceptanceEntity.php'
;
21
return
new
ilTermsOfServiceAcceptanceEntity
();
22
23
default
:
24
throw
new
InvalidArgumentException
(
'Entity not supported'
);
25
}
26
}
27
}
ilTermsOfServiceEntityFactory
Definition:
class.ilTermsOfServiceEntityFactory.php:8
ilTermsOfServiceAcceptanceEntity
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:8
ilTermsOfServiceEntityFactory\getByName
getByName($name)
Definition:
class.ilTermsOfServiceEntityFactory.php:15
php
InvalidArgumentException
Services
TermsOfService
classes
class.ilTermsOfServiceEntityFactory.php
Generated on Fri Feb 21 2025 19:01:19 for ILIAS by
1.8.13 (using
Doxyfile
)