Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
<?php
2
 
3
/**
4
 * Smarty Method GetConfigVariable
5
 *
6
 * Smarty::getConfigVariable() method
7
 *
8
 * @package    Smarty
9
 * @subpackage PluginsInternal
10
 * @author     Uwe Tews
11
 */
12
class Smarty_Internal_Method_GetConfigVariable
13
{
14
    /**
15
     * Valid for all objects
16
     *
17
     * @var int
18
     */
19
    public $objMap = 7;
20
 
21
    /**
22
     * gets  a config variable value
23
     *
24
     * @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data
25
     * @param string                                                  $varName the name of the config variable
26
     * @param bool                                                    $errorEnable
27
     *
28
     * @return null|string  the value of the config variable
29
     */
30
    public function getConfigVariable(Smarty_Internal_Data $data, $varName = null, $errorEnable = true)
31
    {
32
        return $data->ext->configLoad->_getConfigVariable($data, $varName, $errorEnable);
33
    }
34
}