You are here

public function EasyRdf_Format::setSerialiserClass in Zircon Profile 8

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

Set the serialiser to use for a format

Parameters

string $class The name of the class:

File

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

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