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.

smarty_internal_method_getconfigvariable.php 918B

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