*
* @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()
* 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
* @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
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);
}
/**
*/
protected function start??? () {
// Push the node name on the stacker
- $this->getStackerInstance()->pushNamed('!!!', '|||');
+ $this->getStackInstance()->pushNamed('!!!', '|||');
}
/**
*/
protected function finish??? () {
// Pop the last entry
- $this->getStackerInstance()->popNamed('!!!');
+ $this->getStackInstance()->popNamed('!!!');
}
}