Added option type 'articleCategoryMultiSelect'
authorMarcel Werk <burntime@woltlab.com>
Sun, 18 Sep 2016 14:51:56 +0000 (16:51 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 18 Sep 2016 14:52:03 +0000 (16:52 +0200)
wcfsetup/install/files/lib/system/option/ArticleCategoryMultiSelectOptionType.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/system/option/ArticleCategoryMultiSelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/ArticleCategoryMultiSelectOptionType.class.php
new file mode 100644 (file)
index 0000000..ff30e89
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+namespace wcf\system\option;
+use wcf\data\article\category\ArticleCategoryNodeTree;
+
+/**
+ * Option type implementation for selecting multiple article categories.
+ *
+ * @author     Marcel Werk
+ * @copyright  2001-2016 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package    WoltLabSuite\Core\System\Option
+ */
+class ArticleCategoryMultiSelectOptionType extends AbstractCategoryMultiSelectOptionType {
+       /**
+        * @inheritDoc
+        */
+       public $objectType = 'com.woltlab.wcf.article.category';
+       
+       /**
+        * @inheritDoc
+        */
+       public $nodeTreeClassname = ArticleCategoryNodeTree::class;
+}