public static function EasyRdf_Literal::deleteDatatypeMapping in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal.php \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
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Literal.php, line 151
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]);
}
}