public function EasyRdf_Resource::__isset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::__isset()
Magic method to check if a property exists
Note that only properties in the default namespace can be accessed in this way.
Example: if (isset($resource->title)) { blah(); }
Parameters
string $name The name of the property:
See also
EasyRdf_Namespace::setDefault()
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 701
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function __isset($name) {
return $this->graph
->hasProperty($this->uri, $name);
}