X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=application%2Fhub%2Fmain%2Ftemplate%2Fconnect%2Fclass_XmlSelfConnectTemplateEngine.php;h=543fc7251a8beb6d20e58d849671ab849c11d9fb;hp=6afba47d87d607e6669e15992a6fbd524bec9dc7;hb=73aff29b9bc78031853b0b8c0fe0a8e04f66ac29;hpb=3d5a6baf289a0b114668619f1184d6d6a1593755 diff --git a/application/hub/main/template/connect/class_XmlSelfConnectTemplateEngine.php b/application/hub/main/template/connect/class_XmlSelfConnectTemplateEngine.php index 6afba47d8..543fc7251 100644 --- a/application/hub/main/template/connect/class_XmlSelfConnectTemplateEngine.php +++ b/application/hub/main/template/connect/class_XmlSelfConnectTemplateEngine.php @@ -2,11 +2,11 @@ /** * An SelfConnect template engine class for XML templates * - * @author Roland Haeder + * @author Roland Haeder * @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 + * @link http://www.shipsimu.org * @todo This template engine does not make use of setTemplateType() * * This program is free software: you can redistribute it and/or modify @@ -39,11 +39,11 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp parent::__construct(__CLASS__); // Init array - $this->subNodes = array( + $this->setSubNodes(array( 'self-connect-data', self::SELF_CONNECT_DATA_NODE_ID, self::SELF_CONNECT_DATA_SESSION_ID - ); + )); } /** @@ -83,14 +83,14 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp // Is this string empty? if (empty($characters)) { // Then skip it silently - return false; + return; } // END - if /* * Assign the found characters to variable and use the last entry from * stack as the name */ - parent::assignVariable($this->getStackerInstance()->getNamed('node_self_connect'), $characters); + parent::assignVariable($this->getStackInstance()->getNamed('node_self_connect'), $characters); } /** @@ -109,7 +109,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function startSelfConnect () { // Push the node name on the stacker - $this->getStackerInstance()->pushNamed('node_self_connect', 'self-connect'); + $this->getStackInstance()->pushNamed('node_self_connect', 'self-connect'); } /** @@ -119,7 +119,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function startSelfConnectData () { // Push the node name on the stacker - $this->getStackerInstance()->pushNamed('node_self_connect', 'self-connect-data'); + $this->getStackInstance()->pushNamed('node_self_connect', 'self-connect-data'); } /** @@ -129,7 +129,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function startNodeId () { // Push the node name on the stacker - $this->getStackerInstance()->pushNamed('node_self_connect', self::SELF_CONNECT_DATA_NODE_ID); + $this->getStackInstance()->pushNamed('node_self_connect', self::SELF_CONNECT_DATA_NODE_ID); } /** @@ -139,7 +139,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function startSessionId () { // Push the node name on the stacker - $this->getStackerInstance()->pushNamed('node_self_connect', self::SELF_CONNECT_DATA_SESSION_ID); + $this->getStackInstance()->pushNamed('node_self_connect', self::SELF_CONNECT_DATA_SESSION_ID); } /** @@ -149,7 +149,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function finishSessionId () { // Pop the last entry - $this->getStackerInstance()->popNamed('node_self_connect'); + $this->getStackInstance()->popNamed('node_self_connect'); } /** @@ -159,7 +159,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function finishNodeId () { // Pop the last entry - $this->getStackerInstance()->popNamed('node_self_connect'); + $this->getStackInstance()->popNamed('node_self_connect'); } /** @@ -169,7 +169,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function finishSelfConnectData () { // Pop the last entry - $this->getStackerInstance()->popNamed('node_self_connect'); + $this->getStackInstance()->popNamed('node_self_connect'); } /** @@ -179,7 +179,7 @@ class XmlSelfConnectTemplateEngine extends BaseXmlTemplateEngine implements Comp */ protected function finishSelfConnect () { // Pop the last entry - $this->getStackerInstance()->popNamed('node_self_connect'); + $this->getStackInstance()->popNamed('node_self_connect'); } }