From 56ead87cb14ec06f0bacce77c2ae803883923540 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 17 May 2012 13:42:02 +0200 Subject: [PATCH] Removed deprecated method getTypeObject() Closes #594 --- .../lib/acp/form/UserGroupAddForm.class.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php index 332ac6b8cc..78304f801e 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php @@ -224,24 +224,4 @@ class UserGroupAddForm extends AbstractOptionListForm { // show form parent::show(); } - - /** - * @see wcf\acp\form\AbstractOptionListForm::getTypeObject() - */ - protected function getTypeObject($type) { - if (!isset($this->typeObjects[$type])) { - $className = 'wcf\system\option\user\group\\'.StringUtil::firstCharToUpperCase($type).'UserGroupOptionType'; - - // create instance - if (!class_exists($className)) { - throw new SystemException("unable to find class '".$className."'"); - } - if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\user\group\IUserGroupOptionType')) { - throw new SystemException("'".$className."' should implement wcf\system\option\user\group\IUserGroupOptionType"); - } - $this->typeObjects[$type] = new $className(); - } - - return $this->typeObjects[$type]; - } } -- 2.20.1