Removed parseTemporaryMessage()
authorAlexander Ebert <ebert@woltlab.com>
Mon, 31 Oct 2016 10:36:13 +0000 (11:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 31 Oct 2016 10:36:13 +0000 (11:36 +0100)
Closes #2121

wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php

index d464ebcddc40b9d1964e23d1527cc7ef22e7aff2..600a490603b3461a0798f708825923963081ba63 100644 (file)
@@ -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.");
+       }
 }