Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / sitemap / object / AbstractSitemapObjectObjectType.class.php
1 <?php
2
3 namespace wcf\system\sitemap\object;
4
5 use wcf\data\DatabaseObject;
6
7 /**
8 * Abstract implementation of a sitemap object.
9 *
10 * @author Joshua Ruesweg
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Sitemap\Object
14 * @since 3.1
15 */
16 abstract class AbstractSitemapObjectObjectType implements ISitemapObjectObjectType
17 {
18 /**
19 * @inheritDoc
20 */
21 public function getObjectListClass()
22 {
23 return $this->getObjectClass() . 'List';
24 }
25
26 /**
27 * @inheritDoc
28 */
29 public function getObjectList()
30 {
31 $className = $this->getObjectListClass();
32
33 return new $className();
34 }
35
36 /**
37 * @inheritDoc
38 */
39 public function getLastModifiedColumn()
40 {
41 }
42
43 /**
44 * @inheritDoc
45 */
46 public function canView(DatabaseObject $object)
47 {
48 return true;
49 }
50
51 /**
52 * @inheritDoc
53 */
54 public function isAvailableType()
55 {
56 return true;
57 }
58 }