public static function 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 drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Namespace.php
Delete the anonymous namespaces and reset the counter to 0

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Namespace.php, line 215

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);
  if (isset(self::$namespaces[$prefix])) {
    unset(self::$namespaces[$prefix]);
  }
}