public static function EasyRdf_Format::registerParser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php \EasyRdf_Format::registerParser()
Class method to register a parser class to a format name
Parameters
string $name The name of the format (e.g. ntriples):
string $class The name of the class (e.g. EasyRdf_Parser_Ntriples):
1 call to EasyRdf_Format::registerParser()
- Format.php in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Format.php
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Format.php, line 202
Class
- EasyRdf_Format
- Class the represents an RDF file format.
Code
public static function registerParser($name, $class) {
if (!self::formatExists($name)) {
self::register($name);
}
self::getFormat($name)
->setParserClass($class);
}