public function EasyRdf_Format::setSerialiserClass

Set the serialiser to use for a format

Parameters

string $class The name of the class:

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

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