ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilTermsOfServiceEntityFactory Class Reference
+ Collaboration diagram for ilTermsOfServiceEntityFactory:

Public Member Functions

 getByName ($name)
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 8 of file class.ilTermsOfServiceEntityFactory.php.

Member Function Documentation

◆ getByName()

ilTermsOfServiceEntityFactory::getByName (   $name)
Parameters
string$name
Returns
ilTermsOfServiceAcceptanceEntity
Exceptions
InvalidArgumentException

Definition at line 15 of file class.ilTermsOfServiceEntityFactory.php.

16  {
17  switch(strtolower($name))
18  {
19  case 'iltermsofserviceacceptanceentity':
20  require_once 'Services/TermsOfService/classes/class.ilTermsOfServiceAcceptanceEntity.php';
22 
23  default:
24  throw new InvalidArgumentException('Entity not supported');
25  }
26  }

The documentation for this class was generated from the following file: