* @package WoltLabSuite\Core\System\Category * @since 3.0 */ class ArticleCategoryType extends AbstractCategoryType { /** * @inheritDoc */ protected $langVarPrefix = 'wcf.article.category'; /** * @inheritDoc */ protected $hasDescription = false; /** * @inheritDoc */ protected $maximumNestingLevel = 2; /** * @inheritDoc */ protected $objectTypes = ['com.woltlab.wcf.acl' => 'com.woltlab.wcf.article.category']; /** @noinspection PhpMissingParentCallCommonInspection */ /** * @inheritDoc */ public function canAddCategory() { return $this->canEditCategory(); } /** @noinspection PhpMissingParentCallCommonInspection */ /** * @inheritDoc */ public function canDeleteCategory() { return $this->canEditCategory(); } /** @noinspection PhpMissingParentCallCommonInspection */ /** * @inheritDoc */ public function canEditCategory() { return WCF::getSession()->getPermission('admin.content.article.canManageCategory'); } }