ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTermsOfServiceEntityFactory Class Reference

Class ilTermsOfServiceEntityFactory. More...

+ Collaboration diagram for ilTermsOfServiceEntityFactory:

Public Member Functions

 getByName (string $name)
 

Detailed Description

Member Function Documentation

◆ getByName()

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

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

16  {
17  switch (strtolower($name)) {
18  case 'iltermsofserviceacceptanceentity':
19  return new \ilTermsOfServiceAcceptanceEntity();
20 
21  default:
22  throw new \InvalidArgumentException('Entity not supported');
23  }
24  }
Class ilTermsOfServiceAcceptanceEntity.

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