public function EasyRdf_Format::setUri

Set the URI for a format object

Parameters

string $uri The new URI for the format:

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

public function setUri($uri) {
  if ($uri) {
    if (!is_string($uri)) {
      throw new InvalidArgumentException("\$uri should be a string");
    }
    return $this->uri = $uri;
  }
  else {
    return $this->uri = null;
  }
}