CoreFiles by mySites.guru
Alias.php57 lines, 1,246 bytes, from Joomla_1.5.0-Stable-Full_Package.zip
Raw History Compare with 1.0.15
md5
1e794bcab26f727fe432f1164425ab4f
sha1
ab47a46df4e74def59511928eebe2e3aa90ae025
sha256
723c59cc2bd32e0e61d341a9089fc98df89fe1fac4a18d579ad6e7c5156487e9
<?PHP
/**
 * creates a new function alias
 *
 * $Id: Alias.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();

/**
 * creates a new function alias
 *
 * Possible attributes:
 * - alias => new alias
 * - function => function to call
 *
 * $Id: Alias.php 8287 2007-08-01 08:38:59Z eddieajau $
 *
 * @package		patTemplate
 * @subpackage	Functions
 * @author		Stephan Schmidt <[email protected]>
 */
class patTemplate_Function_Alias extends patTemplate_Function
{
	/**
	* name of the function
	* @access	private
	* @var		string
	*/
	var $_name	=	'Alias';

	/**
	* call the function
	*
	* @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 )
	{
		if( !isset( $params['alias'] ) )
			return false;

		if( !isset( $params['function'] ) )
			return false;

		$this->_reader->addFunctionAlias($params['alias'], $params['function']);
		return '';
	}
}
?>

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