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_getdebugtemplate.php 708B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Smarty Method GetDebugTemplate
  4. *
  5. * Smarty::getDebugTemplate() method
  6. *
  7. * @package Smarty
  8. * @subpackage PluginsInternal
  9. * @author Uwe Tews
  10. */
  11. class Smarty_Internal_Method_GetDebugTemplate
  12. {
  13. /**
  14. * Valid for Smarty and template object
  15. *
  16. * @var int
  17. */
  18. public $objMap = 3;
  19. /**
  20. * return name of debugging template
  21. *
  22. * @api Smarty::getDebugTemplate()
  23. *
  24. * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
  25. *
  26. * @return string
  27. */
  28. public function getDebugTemplate(Smarty_Internal_TemplateBase $obj)
  29. {
  30. $smarty = $obj->_getSmartyObj();
  31. return $smarty->debug_tpl;
  32. }
  33. }