ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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}