From: Alexander Ebert Date: Thu, 17 May 2012 11:42:02 +0000 (+0200) Subject: Removed deprecated method getTypeObject() X-Git-Tag: 2.0.0_Beta_1~1104 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56ead87cb14ec06f0bacce77c2ae803883923540;p=GitHub%2FWoltLab%2FWCF.git Removed deprecated method getTypeObject() Closes #594 --- 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]; - } }