public function EasyRdf_Graph::allOfType in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php \EasyRdf_Graph::allOfType()
Get all the resources in the graph of a certain type
If no resources of the type are available and empty array is returned.
Parameters
string $type The type of the resource (e.g. foaf:Person):
Return value
array The array of resources
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Graph.php, line 872
Class
- EasyRdf_Graph
- Container for collection of EasyRdf_Resources.
Code
public function allOfType($type) {
return $this
->all($type, '^rdf:type');
}