public static function EasyRdf_Literal::deleteDatatypeMapping

Remove the mapping between an RDF datatype and a PHP class name

Parameters

string $datatype The RDF datatype (e.g. xsd:dateTime):

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal.php, line 152

Class

EasyRdf_Literal
Class that represents an RDF Literal

Code

public static function deleteDatatypeMapping($datatype) {
  if (!is_string($datatype) or $datatype == null or $datatype == '') {
    throw new InvalidArgumentException("\$datatype should be a string and cannot be null or empty");
  }
  $datatype = EasyRdf_Namespace::expand($datatype);
  if (isset(self::$datatypeMap[$datatype])) {
    $class = self::$datatypeMap[$datatype];
    unset(self::$datatypeMap[$datatype]);
    unset(self::$classMap[$class]);
  }
}