You are here

public function EasyRdf_Resource::allResources in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::allResources()

Get all resources for a property of the resource

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

Parameters

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/Resource.php, line 441

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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