- md5
- a2cbfc4a364e62a63d76a37b5a42c372
- sha1
- 74b6903c4a76e99a9cfb8fa0e18750fdb353fc22
- sha256
- 36e03d51e8ad06cdd79477cf1d77fa73e2cf7a805d9ceaf0ffb2fe14cf573484
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
<?PHP
/**
* patTemplate Module base class
*
* $Id: Module.php 10381 2008-06-01 03:35:53Z pasamio $
*
* The patTemplate_Module is the base class for all patTemplate
* modules like readers, dumpers, filters, etc.
*
* @package patTemplate
* @author Stephan Schmidt <[email protected]>
*/
/**
* patTemplate Module base class
*
* $Id: Module.php 10381 2008-06-01 03:35:53Z pasamio $
*
* The patTemplate_Module is the base class for all patTemplate
* modules like readers, dumpers, filters, etc.
*
* @abstract
* @package patTemplate
* @author Stephan Schmidt <[email protected]>
* @abstract
*/
class patTemplate_Module
{
/**
* module name
*
* This has to be set in the final
* module classes.
*
* @access protected
* @var string
*/
var $_name = null;
/**
* module parameters
*
* @access protected
* @var array
*/
var $_params = array();
/**
* get the name of the module
*
* @access public
* @return string name of the module
*/
function getName()
{
return $this->_name;
}
/**
* sets parameters of the module
*
* @access public
* @param array assoc array containing parameters
* @param boolean flag to indicate, whether previously set parameters should be cleared
*/
function setParams( $params, $clear = false )
{
if( $clear === true )
$this->_params = array();
$this->_params = array_merge( $this->_params, $params );
}
/**
* gets a parameter of the module
*
* @access public
* @param string name of the parameter
* @return mixed value of the parameter
*/
function getParam( $name )
{
if( isset( $this->_params[$name] ) )
return $this->_params[$name];
return false;
}
}
?>
The same content is in 23 releases, Joomla 1.5.4 to 1.5.26. See them all, or every version of this file.