A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
918 B
34 lines
918 B
6 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Smarty Method GetConfigVariable
|
||
|
*
|
||
|
* Smarty::getConfigVariable() method
|
||
|
*
|
||
|
* @package Smarty
|
||
|
* @subpackage PluginsInternal
|
||
|
* @author Uwe Tews
|
||
|
*/
|
||
|
class Smarty_Internal_Method_GetConfigVariable
|
||
|
{
|
||
|
/**
|
||
|
* Valid for all objects
|
||
|
*
|
||
|
* @var int
|
||
|
*/
|
||
|
public $objMap = 7;
|
||
|
|
||
|
/**
|
||
|
* gets a config variable value
|
||
|
*
|
||
|
* @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data
|
||
|
* @param string $varName the name of the config variable
|
||
|
* @param bool $errorEnable
|
||
|
*
|
||
|
* @return null|string the value of the config variable
|
||
|
*/
|
||
|
public function getConfigVariable(Smarty_Internal_Data $data, $varName = null, $errorEnable = true)
|
||
|
{
|
||
|
return $data->ext->configLoad->_getConfigVariable($data, $varName, $errorEnable);
|
||
|
}
|
||
|
}
|