Fixes and updated doc
authorAlexander Ebert <ebert@woltlab.com>
Sat, 25 Jun 2016 09:08:55 +0000 (11:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 25 Jun 2016 09:08:55 +0000 (11:08 +0200)
wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php

index 0a2ba2e48fb615fab0319295e72d55950b9f5c25..60781f360e35679f5e7524f7f9cbe684d8f228c1 100644 (file)
@@ -4,7 +4,6 @@ use wcf\system\bbcode\HtmlBBCodeParser;
 use wcf\system\html\input\filter\IHtmlInputFilter;
 use wcf\system\html\input\filter\MessageHtmlInputFilter;
 use wcf\system\html\input\node\HtmlInputNodeProcessor;
-use wcf\system\html\input\node\IHtmlInputNodeProcessor;
 use wcf\util\StringUtil;
 
 /**
@@ -29,7 +28,7 @@ class HtmlInputProcessor {
        protected $htmlInputFilter;
        
        /**
-        * @var IHtmlInputNodeProcessor
+        * @var HtmlInputNodeProcessor
         */
        protected $htmlInputNodeProcessor;
        
@@ -78,24 +77,24 @@ class HtmlInputProcessor {
        }
        
        /**
-        * @return      IHtmlInputFilter
+        * @return HtmlInputNodeProcessor
         */
-       protected function getHtmlInputFilter() {
-               if ($this->htmlInputFilter === null) {
-                       $this->htmlInputFilter = new MessageHtmlInputFilter();
+       public function getHtmlInputNodeProcessor() {
+               if ($this->htmlInputNodeProcessor === null) {
+                       $this->htmlInputNodeProcessor = new HtmlInputNodeProcessor();
                }
                
-               return $this->htmlInputFilter;
+               return $this->htmlInputNodeProcessor;
        }
        
        /**
-        * @return IHtmlInputNodeProcessor
+        * @return      IHtmlInputFilter
         */
-       protected function getHtmlInputNodeProcessor() {
-               if ($this->htmlInputNodeProcessor === null) {
-                       $this->htmlInputNodeProcessor = new HtmlInputNodeProcessor();
+       protected function getHtmlInputFilter() {
+               if ($this->htmlInputFilter === null) {
+                       $this->htmlInputFilter = new MessageHtmlInputFilter();
                }
                
-               return $this->htmlInputNodeProcessor;
+               return $this->htmlInputFilter;
        }
 }