CoreFiles by mySites.guru
HighlightPhp.php51 lines, 992 bytes, from Joomla_1.5.21-Stable-Full_Package.zip
Raw History Compare with 1.5.20
md5
f9208df3975fde78b5a209fb4c300ee6
sha1
aa7e4433e05b081d4eb7ccd2f5fe6d0da881992b
sha256
784d9463a3b6bb08e808ee08e0b090e02b2281f40723adf39d92fe94fec01e6e
<?PHP
/**
 * patTemplate HighlightPHP filter
 *
 * $Id: HighlightPhp.php 10381 2008-06-01 03:35:53Z pasamio $
 *
 * Highlights PHP code in the output.
 *
 * @package		patTemplate
 * @subpackage	Filters
 * @author		Stephan Schmidt <[email protected]>
 */

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * patTemplate HighlightPHP filter
 *
 * $Id: HighlightPhp.php 10381 2008-06-01 03:35:53Z pasamio $
 *
 * Highlights PHP code in the output.
 *
 * @package		patTemplate
 * @subpackage	Filters
 * @author		Stephan Schmidt <[email protected]>
 */
class patTemplate_OutputFilter_HighlightPhp extends patTemplate_OutputFilter
{
	/**
	* filter name
	*
	* @access	protected
	* @abstract
	* @var	string
	*/
	var	$_name	=	'HighlightPhp';

	/**
	* remove all whitespace from the output
	*
	* @access	public
	* @param	string		data
	* @return	string		data without whitespace
	*/
	function apply( $data )
	{
		return highlight_string($data, true);
	}
}
?>

The same content is in 23 releases, Joomla 1.5.4 to 1.5.26. See them all, or every version of this file.