| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?PHP 2 /** 3 * patTemplate function that highlights PHP code in your templates 4 * 5 * $Id: Phphighlight.php 10381 2008-06-01 03:35:53Z pasamio $ 6 * 7 * @package patTemplate 8 * @subpackage Functions 9 * @author Stephan Schmidt <schst@php.net> 10 */ 11 12 // Check to ensure this file is within the rest of the framework 13 defined('JPATH_BASE') or die(); 14 15 /** 16 * patTemplate function that highlights PHP code in your templates 17 * 18 * $Id: Phphighlight.php 10381 2008-06-01 03:35:53Z pasamio $ 19 * 20 * @package patTemplate 21 * @subpackage Functions 22 * @author Stephan Schmidt <schst@php.net> 23 */ 24 class patTemplate_Function_Phphighlight extends patTemplate_Function 25 { 26 /** 27 * name of the function 28 * @access private 29 * @var string 30 */ 31 var $_name = 'Phphighlight'; 32 33 /** 34 * call the function 35 * 36 * @access public 37 * @param array parameters of the function (= attributes of the tag) 38 * @param string content of the tag 39 * @return string content to insert into the template 40 */ 41 function call( $params, $content ) 42 { 43 ob_start(); 44 highlight_string( $content ); 45 $content = ob_get_contents(); 46 ob_end_clean(); 47 return $content; 48 } 49 } 50 ?>
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 |