NEW ViewableData_Debugger implements __toString

This fixes an issue were ViewableData can be 'debugged' and no information is output - related #4030
This commit is contained in:
Daniel Hensby 2015-03-24 10:40:25 +00:00
parent 4959f0eea8
commit 16f0e7b0d3

View File

@ -701,6 +701,13 @@ class ViewableData_Debugger extends ViewableData {
parent::__construct();
}
/**
* @return string The rendered debugger
*/
public function __toString() {
return $this->forTemplate();
}
/**
* Return debugging information, as XHTML. If a field name is passed, it will show debugging information on that
* field, otherwise it will show information on all methods and fields.