3 namespace wcf\system\message\embedded\
object;
5 use wcf\data\DatabaseObject
;
6 use wcf\system\html\input\HtmlInputProcessor
;
9 * Default interface of embedded object handler.
12 * @copyright 2001-2019 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
15 * @property-read int $objectTypeID id of the embedded object type
17 interface IMessageEmbeddedObjectHandler
20 * Processes embedded data and optionally accesses the current
21 * document to extract additional data. Returns the IDs of found
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
28 public function parse(HtmlInputProcessor
$htmlInputProcessor, array $embeddedData);
31 * Loads and returns embedded objects.
33 * @param array $objectIDs
34 * @return DatabaseObject[]
36 public function loadObjects(array $objectIDs);