CoreFiles by mySites.guru
Alias.php57 lines, 1,190 bytes, from Joomla_1.5.26-Stable-Full_Package.zip
Raw History Compare with 1.5.25
md5
d61d809da00196e59ff82f4ab4ac48c3
sha1
6557111b06f9ab6e04b0d09173406e2c81540049
sha256
c7eeb30171142761f3021d04bd5b1ab9e8795a8ba4de60096daf71e7a5cac278
<?PHP
/**
 * creates a new function alias
 *
 * $Id: Alias.php 10381 2008-06-01 03:35:53Z pasamio $
 *
 * @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 10381 2008-06-01 03:35:53Z pasamio $
 *
 * @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 23 releases, Joomla 1.5.4 to 1.5.26. See them all, or every version of this file.