public static function EasyRdf_Format::registerSerialiser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php \EasyRdf_Format::registerSerialiser()
Class method to register a serialiser 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_Serialiser_Ntriples):
1 call to EasyRdf_Format::registerSerialiser()
- Format.php in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Format.php
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Format.php, line 215
Class
- EasyRdf_Format
- Class the represents an RDF file format.
Code
public static function registerSerialiser($name, $class) {
if (!self::formatExists($name)) {
self::register($name);
}
self::getFormat($name)
->setSerialiserClass($class);
}