temply
[ class tree: temply ] [ index: temply ] [ all elements ]

Source for file EmptyTagHandler.class.php

Documentation is available at EmptyTagHandler.class.php

  1. <?php
  2. /**
  3.  * EmptyTagHandler.class.php
  4.  * 
  5.  * This TagHandler is used by Temply when no other TagHandler is specified.
  6.  * It is an empty implementation and of the ITagHandler interface and does nothing special.
  7.  * 
  8.  * See http://www.oliver-matuschin.de for more information and version udpates.
  9.  * 
  10.  * @author Oliver Matuschin <mail@oliver-matuschin.de>
  11.  * @copyright Copyright (c) 2010 Oliver Matuschin
  12.  * @license LGPL http://www.gnu.de/documents/lgpl.de.html
  13.  * @version 0.1
  14.  * 
  15.  * @package temply
  16.  */
  17.  
  18. class EmptyTagHandler implements ITagHandler {
  19.     /**
  20.      * @see ITagHandler.class.php::isTag()
  21.      * 
  22.      * @return boolean This implementation always returns false.
  23.      ***/
  24.     public function isTag($tagName{
  25.         return false;
  26.     }
  27.     
  28.     /**
  29.      * @see ITagHandler.class.php::processSingleTag()
  30.      * 
  31.      * @return string Always returns an empty string.
  32.      */
  33.     public function processSingleTag($tagNamearray $attributes{
  34.         return '';
  35.     }
  36.     
  37.     /**
  38. /**
  39.      * @see ITagHandler.class.php::processBlockTag()
  40.      * 
  41.      * @return string Always returns an empty string.
  42.      */
  43.     public function processBlockTag($tagNamearray $attributes$blockContent{
  44.         return '';
  45.     }
  46.     
  47.     /**
  48. /**
  49.      * @see ITagHandler.class.php::preprocessAttribute()
  50.      * 
  51.      * @return string Always returns the given value of the attribute.
  52.      */
  53.     public function preprocessAttribute($attrName$attrValue$quoted{
  54.         return $attrValue;
  55.     }
  56. }
  57. ?>

Documentation generated on Sat, 19 Jun 2010 17:07:50 +0200 by phpDocumentor 1.4.0