CoreFiles by mySites.guru
Function.php77 lines, 1,512 bytes, from Joomla_1.5.0-Stable-Full_Package.zip
Raw History Compare with 1.0.15
md5
086b5111dd75097d2a9d86baa074f228
sha1
b9e160a7588425bf96db5b2c60f447247f5928a9
sha256
d23368911fd6a493597f61d8d44dbac19b7e0532cba5dcb03a5b00266dcd1397
<?PHP
/**
 * Base class for patTemplate functions
 *
 * $Id: Function.php 8287 2007-08-01 08:38:59Z eddieajau $
 *
 * @package		patTemplate
 * @subpackage	Functions
 * @author		Stephan Schmidt <[email protected]>
 */

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

/**
 * function is executed, when template is compiled (preg_match)
 */
define('PATTEMPLATE_FUNCTION_COMPILE', 1);

/**
 * function is executed, when template parsed
 */
define('PATTEMPLATE_FUNCTION_RUNTIME', 2);

/**
 * Base class for patTemplate functions
 *
 * $Id: Function.php 8287 2007-08-01 08:38:59Z eddieajau $
 *
 * @abstract
 * @package		patTemplate
 * @subpackage	Functions
 * @author		Stephan Schmidt <[email protected]>
 */
class patTemplate_Function extends patTemplate_Module
{
	/**
	* reader object
	*
	* @access private
	* @var	  object
	*/
	var $_reader;

	/**
	* function type
	*
	* @access public
	* @var	  integer
	*/
	var $type = PATTEMPLATE_FUNCTION_COMPILE;

	/**
	* set the reference to the reader object
	*
	* @access	public
	* @param	object patTemplate_Reader
	*/
	function setReader( &$reader )
	{
		$this->_reader = &$reader;
	}

	/**
	* call the function
	*
	* @abstract
	* @access	public
	* @param	array	parameters of the function (= attributes of the tag)
	* @param	string	content of the tag
	* @return	string	content to insert into the template
	*/
	function call( $params, $content )
	{
	}
}
?>

The same content is in 4 releases, Joomla 1.5.0 to 1.5.3. See them all, or every version of this file.