You are here

public function EasyRdf_Format::newSerialiser in Zircon Profile 8

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

Create a new serialiser to parse this format

Return value

object The new serialiser object

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

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