/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $returnValues = $this->objectAction->getReturnValues(); // create folder for pictures of this category FileUtil::makePath(NEWS_DIR . 'images/news/' . $returnValues['returnValues']->categoryID . '/'); }
/** * @see wcf\acp\form\AbstractCategoryAddForm::validateParentCategory() */ protected function validateParentCategory() { parent::validateParentCategory(); // check if new parent category is no child category of the category $childCategories = CategoryHandler::getInstance()->getChildCategories($this->category); if (isset($childCategories[$this->parentCategoryID])) { throw new UserInputException('parentCategoryID', 'invalid'); } }