You are here

public function EasyRdf_Serialiser_GraphViz::setAttribute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php \EasyRdf_Serialiser_GraphViz::setAttribute()

Set an attribute on the GraphViz graph

Example: $serialiser->setAttribute('rotate', 90);

See the GraphViz tool documentation for information about the available attributes.

Parameters

string $name The name of the attribute:

string $value The value for the attribute:

Return value

object EasyRdf_Serialiser_GraphViz

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php, line 162

Class

EasyRdf_Serialiser_GraphViz
Class to serialise an EasyRdf_Graph to GraphViz

Code

public function setAttribute($name, $value) {
  $this->attributes[$name] = $value;
  return $this;
}