You are here

public function EasyRdf_Graph::join in Zircon Profile 8.0

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

Concatenate all values for a property of a resource into a string.

The default is to join the values together with a space character. This method will return an empty string if the property does not exist.

Parameters

mixed $resource The resource to get the property on:

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

string $glue The string to glue the values together with.:

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

Return value

string Concatenation of all the values.

File

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

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

public function join($resource, $property, $glue = ' ', $lang = null) {
  return join($glue, $this
    ->all($resource, $property, 'literal', $lang));
}