protected function 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 drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php
Get all values for a single property of a resource
EasyRdf_Graph::getSingleProperty in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php
Get a single value for a property of a resource

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php, line 689

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;
  }
}