You are here

public function EasyRdf_Format::setUri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php \EasyRdf_Format::setUri()

Set the URI for a format object

Parameters

string $uri The new URI for the format:

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php, line 334

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