Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: patTemplate

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /pattemplate/patTemplate/Function/Alias.php

Documentation is available at Alias.php

  1. <?PHP
  2. /**
  3.  * creates a new function alias
  4.  *
  5.  * $Id: Alias.php 283 2004-09-07 19:09:56Z schst $
  6.  *
  7.  * @package        patTemplate
  8.  * @subpackage    Functions
  9.  * @author        Stephan Schmidt <[email protected]>
  10.  */
  11.  
  12. // Check to ensure this file is within the rest of the framework
  13. defined('JPATH_BASE'or die();
  14.  
  15. /**
  16.  * creates a new function alias
  17.  *
  18.  * Possible attributes:
  19.  * - alias => new alias
  20.  * - function => function to call
  21.  *
  22.  * $Id: Alias.php 283 2004-09-07 19:09:56Z schst $
  23.  *
  24.  * @package        patTemplate
  25.  * @subpackage    Functions
  26.  * @author        Stephan Schmidt <[email protected]>
  27.  */
  28. {
  29.    /**
  30.     * name of the function
  31.     * @access    private
  32.     * @var        string 
  33.     */
  34.     var $_name    =    'Alias';
  35.  
  36.    /**
  37.     * call the function
  38.     *
  39.     * @access    public
  40.     * @param    array    parameters of the function (= attributes of the tag)
  41.     * @param    string    content of the tag
  42.     * @return    string    content to insert into the template
  43.     */
  44.     function call$params$content )
  45.     {
  46.         if!isset$params['alias') )
  47.             return false;
  48.  
  49.         if!isset$params['function') )
  50.             return false;
  51.  
  52.         $this->_reader->addFunctionAlias($params['alias']$params['function']);
  53.         return '';
  54.     }
  55. }
  56. ?>

Documentation generated on Mon, 05 Mar 2007 20:51:54 +0000 by phpDocumentor 1.3.1