From 69ed9cbb06af52b8ff3a9fb348bcec70ba71c4c5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 31 Oct 2016 11:36:13 +0100 Subject: [PATCH] Removed parseTemporaryMessage() Closes #2121 --- .../MessageEmbeddedObjectManager.class.php | 33 ++++--------------- 1 file changed, 7 insertions(+), 26 deletions(-) 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."); + } } -- 2.20.1