]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/class_
Updated 'core'.
[hub.git] / application / hub / main / template / class_
index ec23392a29e475965c6fa79527f5b343cf611dfb..a36aad5f537c59ea71583a038a26b9ea2c6e64f7 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  * @todo               This template engine does not make use of setTemplateType()
@@ -22,7 +22,6 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-die('YOU NEED TO REPLACE ???, !!! AND ||| IN THIS CLASS BEFORE YOU CAN USE IT.');
 class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable {
        /**
         * Protected constructor
@@ -62,7 +61,6 @@ class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableT
         * @param       $resource               XML parser resource (currently ignored)
         * @param       $characters             Characters to handle
         * @return      void
-        * @todo        Find something useful with this!
         */
        public function characterHandler ($resource, $characters) {
                // Trim all spaces away
@@ -74,10 +72,8 @@ class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableT
                        return false;
                } // END - if
 
-               // Get current XML node name as an array index
-               $nodeName = $this->getStackerInstance()->getNamed('!!!');
-
-               $this->partialStub('TODO: Do something with the gathered data.');
+               // Assign data with matching variable here
+               parent::assignVariable($this->getStackInstance()->getNamed('!!!'), $characters);
        }
 
        /**
@@ -96,7 +92,7 @@ class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableT
         */
        protected function start??? () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('!!!', '|||');
+               $this->getStackInstance()->pushNamed('!!!', '|||');
        }
 
        /**
@@ -106,7 +102,7 @@ class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableT
         */
        protected function finish??? () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('!!!');
+               $this->getStackInstance()->popNamed('!!!');
        }
 }