You are here

public function EasyRdf_Resource::all in Zircon Profile 8

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

Get all values for a property

This method will return an empty array if the property does not exist.

Parameters

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

string $type The type of value to filter by (e.g. literal):

string $lang The language to filter by (e.g. en):

Return value

array An array of values associated with the property

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 412

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function all($property, $type = null, $lang = null) {
  $this
    ->checkHasGraph();
  return $this->graph
    ->all($this->uri, $property, $type, $lang);
}