public function EasyRdf_Format::setLabel

Set the label for a format object

Parameters

string $label The new label for the format:

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php, line 308

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;
  }
}