Merge pull request #4034 from dhensby/pulls/debug-viewable-data-3

NEW ViewableData_Debugger implements __toString
This commit is contained in:
Damian Mooyman 2015-04-02 09:56:31 +13:00
commit 2cc9d02f75

View File

@ -701,6 +701,13 @@ class ViewableData_Debugger extends ViewableData {
parent::__construct(); 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 * 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. * field, otherwise it will show information on all methods and fields.