ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
class.ilTermsOfServiceEntityFactory.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
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
$name
if($format !==null) $name
Definition:
metadata.php:230
ilTermsOfServiceAcceptanceEntity
Class ilTermsOfServiceAcceptanceEntity.
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:8
InvalidArgumentException
Services
TermsOfService
classes
class.ilTermsOfServiceEntityFactory.php
Generated on Sun Aug 31 2025 21:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)