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