You are here

public function EasyRdf_Graph::allResources in Zircon Profile 8.0

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

Get all resources for a property of a resource

This method will return an empty array if the resource does not has any resources for that property.

Parameters

string $resource The URI of the resource (e.g. http://example.com/joe#me):

string $property The name of the property (e.g. foaf:name):

Return value

array An array of values associated with the property

File

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

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

public function allResources($resource, $property) {
  return $this
    ->all($resource, $property, 'resource');
}