From: Alexander Ebert Date: Mon, 31 Oct 2016 10:36:13 +0000 (+0100) Subject: Removed parseTemporaryMessage() X-Git-Tag: 3.0.0_Beta_5~80 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69ed9cbb06af52b8ff3a9fb348bcec70ba71c4c5;p=GitHub%2FWoltLab%2FWCF.git Removed parseTemporaryMessage() Closes #2121 --- diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php index d464ebcddc..600a490603 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php @@ -245,32 +245,6 @@ class MessageEmbeddedObjectManager extends SingletonFactory { return null; } - /** - * Parses a temporary message and loads found embedded objects. - * - * @param string $message - */ - public function parseTemporaryMessage($message) { - // remove [code] tags - $message = BBCodeParser::getInstance()->removeCodeTags($message); - - // set active message information - $this->activeMessageObjectTypeID = -1; - $this->activeMessageID = -1; - - // get embedded objects - foreach ($this->getEmbeddedObjectHandlers() as $handler) { - $objectIDs = $handler->parseMessage($message); - if (!empty($objectIDs)) { - // save assignments - $this->messageEmbeddedObjects[$this->activeMessageObjectTypeID][$this->activeMessageID][$handler->objectTypeID] = $objectIDs; - - // loads objects - $this->embeddedObjects[$handler->objectTypeID] = $handler->loadObjects($objectIDs); - } - } - } - /** * Temporarily registers a message, the parsed data will not be stored. * @@ -341,4 +315,11 @@ class MessageEmbeddedObjectManager extends SingletonFactory { return $this->embeddedObjectHandlers[$objectTypeID]; } + + /** + * @deprecated 3.0 + */ + public function parseTemporaryMessage() { + throw new \BadMethodCallException("parseTemporaryMessage() has been removed, please use registerTemporaryMessage() instead."); + } }