parser->parse($var->value, $o); // simply replace with its value $o->type = 'Smarty Variable :: ' . $o->type; $this->parser->haltParse(); return; } $r = new Representation('Smarty variables'); foreach ($var->tpl_vars as $name => $val) { if ($name === 'SCRIPT_NAME') { continue; } $r->contents[] = $this->parser->parse( $val->value, BasicObject::blank($name) ); } $o->addRepresentation($r); $r = new Representation('Globally assigned variables'); foreach (\Smarty::$global_tpl_vars as $name => $val) { if ($name === 'SCRIPT_NAME') { continue; } $r->contents[] = $this->parser->parse( $val->value, BasicObject::blank($name) ); } $o->addRepresentation($r); $r = new Representation('Configuration'); $var1 = $var->getCompileDir(); $r->contents[] = $this->parser->parse( $var1, BasicObject::blank('Compiled files stored in') ); if (!empty($var->registered_plugins)) { $var1 = $var->registered_plugins; $r->contents[] = $this->parser->parse( $var1, BasicObject::blank('User registered plugins') ); $o->addRepresentation($r); } $o->classname = $className; // this is necessary for TraceFrameObject.php:95 to not throw an error $o->type = $className; $this->parser->haltParse(); } }