2 namespace wcf\system\category
;
6 * Category type implementation for article categories.
9 * @copyright 2001-2018 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Category
14 class ArticleCategoryType
extends AbstractCategoryType
{
18 protected $langVarPrefix = 'wcf.article.category';
23 protected $hasDescription = false;
28 protected $maximumNestingLevel = 2;
33 protected $objectTypes = ['com.woltlab.wcf.acl' => 'com.woltlab.wcf.article.category'];
35 /** @noinspection PhpMissingParentCallCommonInspection */
39 public function canAddCategory() {
40 return $this->canEditCategory();
43 /** @noinspection PhpMissingParentCallCommonInspection */
47 public function canDeleteCategory() {
48 return $this->canEditCategory();
51 /** @noinspection PhpMissingParentCallCommonInspection */
55 public function canEditCategory() {
56 return WCF
::getSession()->getPermission('admin.content.article.canManageCategory');