public function EasyRdf_Graph::dump

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.

Parameters

boolean $html Set to true to format the dump using HTML:

Return value

string

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php, line 1287

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

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;
}