You are here

protected function EasyRdf_Graph::propertyValuesArray in Zircon Profile 8.0

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

Return all the values for a particular property of a resource @ignore

2 calls to EasyRdf_Graph::propertyValuesArray()
EasyRdf_Graph::allForSingleProperty in vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php
Get all values for a single property of a resource
EasyRdf_Graph::getSingleProperty in vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php
Get a single value for a property of a resource

File

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

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

protected function propertyValuesArray($resource, $property, $inverse = false) {

  // Is an inverse property being requested?
  if ($inverse) {
    if (isset($this->revIndex[$resource])) {
      $properties =& $this->revIndex[$resource];
    }
  }
  else {
    if (isset($this->index[$resource])) {
      $properties =& $this->index[$resource];
    }
  }
  if (isset($properties[$property])) {
    return $properties[$property];
  }
  else {
    return null;
  }
}