Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: patTemplate

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /pattemplate/patTemplate/Function/Strip.php

Documentation is available at Strip.php

  1. <?PHP
  2. /**
  3.  * patTemplate function that strips whitespace from a text
  4.  * block. This is an implementation of Smarty's strip function.
  5.  *
  6.  * $Id: Strip.php 205 2004-05-13 21:27:27Z schst $
  7.  *
  8.  * @package        patTemplate
  9.  * @subpackage    Functions
  10.  * @author        Stephan Schmidt <[email protected]>
  11.  */
  12.  
  13. // Check to ensure this file is within the rest of the framework
  14. defined('JPATH_BASE'or die();
  15.  
  16. /**
  17.  * patTemplate function that strips whitespace from a text
  18.  * block. This is an implementation of Smarty's strip function.
  19.  *
  20.  * $Id: Strip.php 205 2004-05-13 21:27:27Z schst $
  21.  *
  22.  * @package        patTemplate
  23.  * @subpackage    Functions
  24.  * @author        Stephan Schmidt <[email protected]>
  25.  */
  26. {
  27.    /**
  28.     * name of the function
  29.     * @access    private
  30.     * @var        string 
  31.     */
  32.     var $_name    =    'Strip';
  33.  
  34.    /**
  35.     * call the function
  36.     *
  37.     * @access    public
  38.     * @param    array    parameters of the function (= attributes of the tag)
  39.     * @param    string    content of the tag
  40.     * @return    string    content to insert into the template
  41.     */
  42.     function call$params$content )
  43.     {
  44.         return preg_replace'/\s+/m'' '$content );
  45.     }
  46. }
  47. ?>

Documentation generated on Mon, 05 Mar 2007 21:27:11 +0000 by phpDocumentor 1.3.1