public static function EasyRdf_TypeMapper::delete in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/TypeMapper.php \EasyRdf_TypeMapper::delete()
Delete an existing RDF type mapping.
Parameters
string $type The RDF type (e.g. foaf:Person):
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ TypeMapper.php, line 102
Class
- EasyRdf_TypeMapper
- Class to map between RDF Types and PHP Classes
Code
public static function delete($type) {
if (!is_string($type) or $type == null or $type == '') {
throw new InvalidArgumentException("\$type should be a string and cannot be null or empty");
}
$type = EasyRdf_Namespace::expand($type);
if (isset(self::$map[$type])) {
unset(self::$map[$type]);
}
}