| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
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 10381 2008-06-01 03:35:53Z pasamio $ 7 * 8 * @package patTemplate 9 * @subpackage Functions 10 * @author Stephan Schmidt <schst@php.net> 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 10381 2008-06-01 03:35:53Z pasamio $ 21 * 22 * @package patTemplate 23 * @subpackage Functions 24 * @author Stephan Schmidt <schst@php.net> 25 */ 26 class patTemplate_Function_Strip extends patTemplate_Function 27 { 28 /** 29 * name of the function 30 * @access private 31 * @var string 32 */ 33 var $_name = 'Strip'; 34 35 /** 36 * call the function 37 * 38 * @access public 39 * @param array parameters of the function (= attributes of the tag) 40 * @param string content of the tag 41 * @return string content to insert into the template 42 */ 43 function call( $params, $content ) 44 { 45 return preg_replace( '/\s+/m', ' ', $content ); 46 } 47 } 48 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |