Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / tagging / ITaggable.class.php
CommitLineData
04c06e85
MW
1<?php
2namespace wcf\system\tagging;
3use wcf\data\tag\Tag;
4
5/**
6 * Any object type that is taggable, can implement this interface.
7 *
8 * @author Marcel Werk
c839bd49 9 * @copyright 2001-2018 WoltLab GmbH
04c06e85 10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
e71525e4 11 * @package WoltLabSuite\Core\System\Tagging
04c06e85
MW
12 */
13interface ITaggable {
14 /**
15 * Returns a list of tagged objects.
16 *
4e25add7 17 * @param Tag $tag
0ad90fc3 18 * @return \wcf\data\DatabaseObjectList
04c06e85
MW
19 */
20 public function getObjectList(Tag $tag);
21
22 /**
23 * Returns the template name for the result output.
24 *
25 * @return string
26 */
27 public function getTemplateName();
28
29 /**
30 * Returns the application of the result template.
59dc0db6 31 *
04c06e85
MW
32 * @return string
33 */
34 public function getApplication();
35}