<changeFreq>monthly</changeFreq>
<rebuildTime>259200</rebuildTime>
</type>
+ <type>
+ <name>com.woltlab.wcf.sitemap.object.articleCategory</name>
+ <definitionname>com.woltlab.wcf.sitemap.object</definitionname>
+ <classname>wcf\system\sitemap\object\ArticleCategorySitemapObject</classname>
+ <priority>0.5</priority>
+ <changeFreq>weekly</changeFreq>
+ <rebuildTime>2592000</rebuildTime>
+ </type>
<!-- /sitemap -->
<!-- deprecated -->
--- /dev/null
+<?php
+namespace wcf\system\sitemap\object;
+use wcf\data\article\category\ArticleCategory;
+use wcf\data\category\CategoryList;
+use wcf\data\object\type\ObjectTypeCache;
+use wcf\data\DatabaseObject;
+
+/**
+ * Article category sitemap implementation.
+ *
+ * @author Joshua Ruesweg
+ * @copyright 2001-2017 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\Data\Sitemap\Object
+ * @since 3.1
+ */
+class ArticleCategorySitemapObject extends AbstractSitemapObjectObjectType {
+ /**
+ * @inheritDoc
+ */
+ public function getObjectClass() {
+ throw new \LogicException('Unreachable');
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function getObjectList() {
+ $categoryList = new CategoryList();
+ $categoryList->decoratorClassName = ArticleCategory::class;
+ $categoryList->getConditionBuilder()->add('objectTypeID = ?', [ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.category', ArticleCategory::OBJECT_TYPE_NAME)]);
+
+ return $categoryList;
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function canView(DatabaseObject $object) {
+ /** @var $object ArticleCategory */
+ return $object->isAccessible(self::getGuestUserProfile()->getDecoratedObject());
+ }
+}
<item name="wcf.acp.sitemap.enabled"><![CDATA[Sitemap aktiviert]]></item>
<item name="wcf.acp.sitemap.edit"><![CDATA[Sitemap bearbeiten]]></item>
<item name="wcf.acp.sitemap.objectType.com.woltlab.wcf.sitemap.object.user"><![CDATA[Benutzer]]></item>
+ <item name="wcf.acp.sitemap.objectType.com.woltlab.wcf.sitemap.object.articleCategory"><![CDATA[Artikel-Kategorien]]></item>
</category>
<category name="wcf.acp.stat">
<item name="wcf.acp.sitemap.enabled"><![CDATA[Sitemap enabled]]></item>
<item name="wcf.acp.sitemap.edit"><![CDATA[Edit Sitemap]]></item>
<item name="wcf.acp.sitemap.objectType.com.woltlab.wcf.sitemap.object.user"><![CDATA[User]]></item>
+ <item name="wcf.acp.sitemap.objectType.com.woltlab.wcf.sitemap.object.articleCategory"><![CDATA[Article categories]]></item>
</category>
<category name="wcf.acp.stat">