You are here

public function EasyRdf_Format::newParser in Zircon Profile 8.0

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

Create a new parser to parse this format

Return value

object The new parser object

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

public function newParser() {
  $parserClass = $this->parserClass;
  if (!$parserClass) {
    throw new EasyRdf_Exception("No parser class available for format: " . $this
      ->getName());
  }
  return new $parserClass();
}