| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?PHP 2 /** 3 * patTemplate function to dynamically change the 4 * value of _any_ attribute of the parent tag. 5 * 6 * $Id: Attribute.php 10381 2008-06-01 03:35:53Z pasamio $ 7 * 8 * @package patTemplate 9 * @subpackage Functions 10 * @author Stephan Schmidt <schst@php.net> 11 */ 12 13 // Check to ensure this file is within the rest of the framework 14 defined('JPATH_BASE') or die(); 15 16 /** 17 * patTemplate function to dynamically change the 18 * value of _any_ attribute of the parent tag. 19 * 20 * Possible attributes: 21 * - name => name of the attribute to change 22 * 23 * The enclosed data will be used as the value of the attribute. 24 * 25 * $Id: Attribute.php 10381 2008-06-01 03:35:53Z pasamio $ 26 * 27 * @package patTemplate 28 * @subpackage Functions 29 * @author Stephan Schmidt <schst@php.net> 30 */ 31 class patTemplate_Function_Attribute extends patTemplate_Function 32 { 33 /** 34 * name of the function 35 * @access private 36 * @var string 37 */ 38 var $_name = 'Attribute'; 39 40 /** 41 * call the function 42 * 43 * @access public 44 * @param array parameters of the function (= attributes of the tag) 45 * @param string content of the tag 46 * @return string content to insert into the template 47 */ 48 function call( $params, $content ) 49 { 50 if( isset( $params['name'] ) ) 51 { 52 $this->_reader->_addToParentTag( 'attributes', $content, $params['name'] ); 53 } 54 return ''; 55 } 56 } 57 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |