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

@ -700,7 +700,14 @@ class ViewableData_Debugger extends ViewableData {
$this->object = $object;
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.