ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 case 'iltermsofserviceacceptanceentity':
19 require_once 'Services/TermsOfService/classes/class.ilTermsOfServiceAcceptanceEntity.php';
21
22 default:
23 throw new InvalidArgumentException('Entity not supported');
24 }
25 }
26}
An exception for terminatinating execution or to throw for unit testing.
if($format !==null) $name
Definition: metadata.php:146