You are here

public function EasyRdf_Graph::typesAsResources in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php \EasyRdf_Graph::typesAsResources()

Get the resource types of the graph as a EasyRdf_Resource

Return value

EasyRdf_Resource[]

1 call to EasyRdf_Graph::typesAsResources()
EasyRdf_Graph::types in vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php
Get a list of types for a resource

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php, line 1455

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

public function typesAsResources($resource = null) {
  $this
    ->checkResourceParam($resource, true);
  if ($resource) {
    return $this
      ->all($resource, 'rdf:type', 'resource');
  }
  return array();
}