ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
9 {
15  public function getByName($name)
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  }
27 }