public function EasyRdf_Format::setLabel in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php \EasyRdf_Format::setLabel()
Set the label for a format object
Parameters
string $label The new label for the format:
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Format.php, line 307
Class
- EasyRdf_Format
- Class the represents an RDF file format.
Code
public function setLabel($label) {
if ($label) {
if (!is_string($label)) {
throw new InvalidArgumentException("\$label should be a string");
}
return $this->label = $label;
}
else {
return $this->label = null;
}
}