You are here

public function EasyRdf_Format::setParserClass in Zircon Profile 8

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

Set the parser to use for a format

Parameters

string $class The name of the class:

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

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