You are here

public function EasyRdf_Literal_XML::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/XML.php \EasyRdf_Literal_XML::__construct()

Constructor for creating a new rdf:XMLLiteral literal

Parameters

mixed $value The XML fragment:

string $lang Should be null (literals with a datatype can't have a language):

string $datatype Optional datatype (default 'rdf:XMLLiteral'):

Return value

object EasyRdf_Literal_XML

Overrides EasyRdf_Literal::__construct

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/XML.php, line 55

Class

EasyRdf_Literal_XML
Class that represents an RDF Literal of datatype rdf:XMLLiteral

Code

public function __construct($value, $lang = null, $datatype = null) {
  parent::__construct($value, null, $datatype);
}