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