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

Source for file EscapeViewHelper.php

Documentation is available at EscapeViewHelper.php

  1. <?php
  2. /**
  3.  * MVClasses
  4.  *
  5.  * LICENSE
  6.  *
  7.  * "THE BEER-WARE LICENSE" (Revision 42):
  8.  * "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
  9.  * As long as you retain this notice you can do whatever you want with
  10.  * this stuff. If we meet some day, and you think this stuff is worth it,
  11.  * you can buy me a beer in return.
  12.  *
  13.  * @category    MVClasses
  14.  * @package     ViewHelper
  15.  * @copyright   Copyright (c) 2007 Sven Strittmatter
  16.  */
  17.  
  18. /**
  19.  * @see ViewHelper
  20.  */
  21. require_once dirname(__FILE__)."/ViewHelper.php";
  22.  
  23. /**
  24.  * Enter description here...
  25.  *
  26.  * Longdesc
  27.  *
  28.  * @todo complete description
  29.  *
  30.  * @category    MVClasses
  31.  * @package     ViewHelper
  32.  * @copyright     Copyright (c) 2007 Sven Strittmatter
  33.  * @author    "Sven Strittmatter" <ausserirdisch@sven-space.de>
  34.  * @version     1.0
  35.  * @link        http://www.sven-space.de/code/php/MVClasses
  36.  */
  37. class EscapeViewHelper implements ViewHelper {
  38.     public function execute($args array()) {
  39.         return htmlspecialchars(strip_tags($args[0]));
  40.     }
  41. }

Documentation generated on Sun, 02 Aug 2009 17:14:52 +0200 by phpDocumentor 1.4.2