Class EasyRdf_Literal_HexBinary

Description

Class that represents an RDF Literal of datatype xsd:hexBinary

Located in /EasyRdf/Literal/HexBinary.php (line 47)

EasyRdf_Literal
   |
   --EasyRdf_Literal_HexBinary
Method Summary
static object EasyRdf_Literal_HexBinary fromBinary ( $binary, string $value)
object EasyRdf_Literal_HexBinary __construct (mixed $value, [string $lang = null], [string $datatype = null])
string toBinary ()
Methods
static method fromBinary (line 77)

Constructor for creating a new literal object from a binary blob

  • access: public
static object EasyRdf_Literal_HexBinary fromBinary ( $binary, string $value)
  • string $value: The binary data
  • $binary
Constructor __construct (line 56)

Constructor for creating a new xsd:hexBinary literal

  • access: public
object EasyRdf_Literal_HexBinary __construct (mixed $value, [string $lang = null], [string $datatype = null])
  • mixed $value: The value of the literal (already encoded as hexadecimal)
  • string $lang: Should be null (literals with a datatype can't have a language)
  • string $datatype: Optional datatype (default 'xsd:hexBinary')

Redefinition of:
EasyRdf_Literal::__construct()
Constructor for creating a new literal
toBinary (line 86)

Decode the hexadecimal string into a binary blob

  • return: The binary blob
  • access: public
string toBinary ()

Inherited Methods

Inherited From EasyRdf_Literal

EasyRdf_Literal::__construct()
EasyRdf_Literal::create()
EasyRdf_Literal::deleteDatatypeMapping()
EasyRdf_Literal::dumpValue()
EasyRdf_Literal::getDatatype()
EasyRdf_Literal::getDatatypeForValue()
EasyRdf_Literal::getDatatypeUri()
EasyRdf_Literal::getLang()
EasyRdf_Literal::getValue()
EasyRdf_Literal::setDatatypeMapping()
EasyRdf_Literal::toArray()
EasyRdf_Literal::__toString()

Documentation generated on Wed, 16 Jan 2013 19:16:37 +0000 by phpDocumentor 1.4.4