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 722B

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. * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
  24. *
  25. * @return string
  26. */
  27. public function getDebugTemplate(Smarty_Internal_TemplateBase $obj)
  28. {
  29. $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
  30. return $smarty->debug_tpl;
  31. }
  32. }