Removed deprecated method getTypeObject()
authorAlexander Ebert <ebert@woltlab.com>
Thu, 17 May 2012 11:42:02 +0000 (13:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 17 May 2012 11:42:02 +0000 (13:42 +0200)
Closes #594

wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php

index 332ac6b8cc86ec8bd166e8f5022176e5bed49192..78304f801ec7acdb152dabaa3fe72526c3b78740 100755 (executable)
@@ -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];
-       }
 }