2 namespace wcf\system\category
;
3 use wcf\data\category\CategoryEditor
;
4 use wcf\system\cache\builder\SmileyCacheBuilder
;
8 * Category implementation for smilies.
10 * @author Tim Duesterhus
11 * @copyright 2001-2018 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Category
15 class SmileyCategoryType
extends AbstractCategoryType
{
19 protected $langVarPrefix = 'wcf.acp.smiley.category';
24 protected $hasDescription = false;
29 protected $maximumNestingLevel = 0;
34 public function afterDeletion(CategoryEditor
$categoryEditor) {
35 SmileyCacheBuilder
::getInstance()->reset();
41 public function canAddCategory() {
42 return $this->canEditCategory();
48 public function canDeleteCategory() {
49 return $this->canEditCategory();
55 public function canEditCategory() {
56 return WCF
::getSession()->getPermission('admin.content.smiley.canManageSmiley');