]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/template/class_BaseTemplateEngine.php
Continued:
[core.git] / framework / main / classes / template / class_BaseTemplateEngine.php
index 2d30141ec8004c9f1fc1190a5cdff3420b5cdda6..8c09dfbf91a01dfa65b5c601a73932a3500a3181 100644 (file)
@@ -170,11 +170,6 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
         */
        private $languageSupport = true;
 
-       /**
-        * XML compacting is disabled by default
-        */
-       private $xmlCompacting = false;
-
        /**
         * Protected constructor
         *
@@ -1548,33 +1543,6 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
                $this->setRawTemplateData($rawData);
        }
 
-       /**
-        * Renders the given XML content
-        *
-        * @param       $content        Valid XML content or if not set the current loaded raw content
-        * @return      void
-        * @throws      XmlParserException      If an XML error was found
-        */
-       public function renderXmlContent (string $content = NULL) {
-               // Is the content set?
-               if (is_null($content)) {
-                       // Get current content
-                       $content = $this->getRawTemplateData();
-               }
-
-               // Get a XmlParser instance
-               $parserInstance = ObjectFactory::createObjectByConfiguredName('xml_parser_class', array($this));
-
-               // Check if XML compacting is enabled
-               if ($this->isXmlCompactingEnabled()) {
-                       // Yes, so get a decorator class for transparent compacting
-                       $parserInstance = ObjectFactory::createObjectByConfiguredName('deco_compacting_xml_parser_class', array($parserInstance));
-               }
-
-               // Parse the XML document
-               $parserInstance->parseXmlContent($content);
-       }
-
        /**
         * Enables or disables language support
         *
@@ -1594,25 +1562,6 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
                return $this->languageSupport;
        }
 
-       /**
-        * Enables or disables XML compacting
-        *
-        * @param       $xmlCompacting  New XML compacting setting
-        * @return      void
-        */
-       public final function enableXmlCompacting (bool $xmlCompacting = true) {
-               $this->xmlCompacting = $xmlCompacting;
-       }
-
-       /**
-        * Checks whether XML compacting is enabled
-        *
-        * @return      $xmlCompacting  Whether XML compacting is enabled or disabled
-        */
-       public final function isXmlCompactingEnabled () {
-               return $this->xmlCompacting;
-       }
-
        /**
         * Removes all commentd, tabs and new-line characters to compact the content
         *