public static function EasyRdf_Namespace::delete in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Namespace.php \EasyRdf_Namespace::delete()
Delete an existing namespace.
Parameters
string $prefix The namespace prefix (eg 'foaf'):
1 call to EasyRdf_Namespace::delete()
- EasyRdf_Namespace::reset in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Namespace.php - Delete the anonymous namespaces and reset the counter to 0
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Namespace.php, line 269
Class
- EasyRdf_Namespace
- A namespace registry and manipulation class.
Code
public static function delete($prefix) {
if (!is_string($prefix) or $prefix === null or $prefix === '') {
throw new InvalidArgumentException("\$prefix should be a string and cannot be null or empty");
}
$prefix = strtolower($prefix);
self::namespaces();
// make sure, that self::$namespaces is initialized
if (isset(self::$namespaces[$prefix])) {
unset(self::$namespaces[$prefix]);
}
}