Commit | Line | Data |
---|---|---|
0a2b09a2 | 1 | <?php |
a9229942 | 2 | |
0a2b09a2 | 3 | namespace wcf\system\message\embedded\object; |
a9229942 | 4 | |
7a23a706 | 5 | use wcf\data\DatabaseObject; |
8031a1a1 | 6 | use wcf\system\html\input\HtmlInputProcessor; |
0a2b09a2 MW |
7 | |
8 | /** | |
9 | * Default interface of embedded object handler. | |
a9229942 TD |
10 | * |
11 | * @author Marcel Werk | |
12 | * @copyright 2001-2019 WoltLab GmbH | |
13 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
a9229942 TD |
14 | * |
15 | * @property-read int $objectTypeID id of the embedded object type | |
0a2b09a2 | 16 | */ |
a9229942 TD |
17 | interface IMessageEmbeddedObjectHandler |
18 | { | |
19 | /** | |
20 | * Processes embedded data and optionally accesses the current | |
21 | * document to extract additional data. Returns the IDs of found | |
22 | * embedded objects. | |
23 | * | |
24 | * @param HtmlInputProcessor $htmlInputProcessor html input processor holding the current document | |
25 | * @param mixed[] $embeddedData list of found embedded data with attributes | |
26 | * @return int[] ids of found embedded objects | |
27 | */ | |
28 | public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData); | |
29 | ||
30 | /** | |
31 | * Loads and returns embedded objects. | |
32 | * | |
33 | * @param array $objectIDs | |
34 | * @return DatabaseObject[] | |
35 | */ | |
36 | public function loadObjects(array $objectIDs); | |
0a2b09a2 | 37 | } |