Source for file ITagHandler.class.php
Documentation is available at ITagHandler.class.php
* Every TagHandler for use with Temply should implement this interface.
* It provides all methods required by Temply.
* See http://www.oliver-matuschin.de for more information and version udpates.
* @author Oliver Matuschin <mail@oliver-matuschin.de>
* @copyright Copyright (c) 2010 Oliver Matuschin
* @license LGPL http://www.gnu.de/documents/lgpl.de.html
* This method is called by Temply to
* check whether a given string is a valid tag.
* @param string The name of the tag to check.
* @return boolean Should return true if the specified string is a valid tag, false otherwise.
public function isTag($tagName);
* This method is called by Temply whenever
* a valid tag is found which does not have any content.
* @param string The name of the tag.
* @param array Attributes and values of the tag.
* @return string Returns the string to be inserted into the template.
* This method is called by Temply whenever
* a valid tag is found which also has an end-tag.
* @param string The name of the tag.
* @param array Attributes and values of the tag.
* @param string The content between the start- and end-tag.
* @return string Returns the string to be inserted into the template.
public function processBlockTag($tagName, array $attributes, $blockContent);
* This method is called by the ThemplateParser <strong>before</strong>
* the methods processSingleTag or processBlockTag are called.
* It can be used to change the value of any attribute, if needed.
* @param string The name of the attribute.
* @param string The value of the attribute.
* @param boolean True, if the value of the attribute is quoted, false otherwise.
* @return string The new value of the given attribute.
public function preprocessAttribute($attrName, $attrValue, $quoted);
|