You are here

public static function EasyRdf_Format::formatExists in Zircon Profile 8.0

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

Check if a named graph exists

Parameters

string $name the name of the format:

Return value

boolean true if the format exists

2 calls to EasyRdf_Format::formatExists()
EasyRdf_Format::registerParser in vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php
Class method to register a parser class to a format name
EasyRdf_Format::registerSerialiser in vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php
Class method to register a serialiser class to a format name

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

public static function formatExists($name) {
  return array_key_exists($name, self::$formats);
}