ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTermsOfServiceEntityFactory.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
16 {
17 switch (strtolower($name)) {
18 case 'iltermsofserviceacceptanceentity':
19 return new \ilTermsOfServiceAcceptanceEntity();
20
21 default:
22 throw new \InvalidArgumentException('Entity not supported');
23 }
24 }
25}
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceAcceptanceEntity.
Class ilTermsOfServiceEntityFactory.