Return a human readable view of all the resources in the graph
This method is intended to be a debugging aid and will return a pretty-print view of all the resources and their properties.
boolean $html Set to true to format the dump using HTML:
string
public function dump($html = true) {
$result = '';
if ($html) {
$result .= "<div style='font-family:arial; font-weight: bold; padding:0.5em; " . "color: black; background-color:lightgrey;border:dashed 1px grey;'>" . "Graph: " . $this->uri . "</div>\n";
}
else {
$result .= "Graph: " . $this->uri . "\n";
}
foreach ($this->index as $resource => $properties) {
$result .= $this
->dumpResource($resource, $html);
}
return $result;
}