You are here

protected function EasyRdf_Resource::checkHasGraph in Zircon Profile 8

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

Throw can exception if the resource does not belong to a graph @ignore

28 calls to EasyRdf_Resource::checkHasGraph()
EasyRdf_Resource::add in vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add values to for a property of the resource
EasyRdf_Resource::addLiteral in vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add a literal value as a property of the resource
EasyRdf_Resource::addResource in vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add a resource as a property of the resource
EasyRdf_Resource::addType in vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add one or more rdf:type properties to the resource
EasyRdf_Resource::all in vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Get all values for a property

... See full list

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

protected function checkHasGraph() {
  if (!$this->graph) {
    throw new EasyRdf_Exception("EasyRdf_Resource is not part of a graph.");
  }
}