PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/jairosvt/public_html/afmediosc/libraries/pattemplate/patTemplate/ |
| Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64 IP: 107.161.180.42 |
| Dir : /home/jairosvt/public_html/afmediosc/libraries/pattemplate/patTemplate/Module.php |
<?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 <schst@php.net>
*/
/**
* 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 <schst@php.net>
* @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;
}
}
?>