Class EasyRdf_Literal_Boolean

Description

Class that represents an RDF Literal of datatype xsd:boolean

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

EasyRdf_Literal
   |
   --EasyRdf_Literal_Boolean
Method Summary
object EasyRdf_Literal_Boolean __construct (mixed $value, [string $lang = null], [string $datatype = null])
bool getValue ()
bool isFalse ()
bool isTrue ()
Methods
Constructor __construct (line 58)

Constructor for creating a new boolean literal

If the value is not a string, then it will be converted to 'true' or 'false'.

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

Redefinition of:
EasyRdf_Literal::__construct()
Constructor for creating a new literal
getValue (line 71)

Return the value of the literal cast to a PHP bool

If the value is 'true' or '1' return true, otherwise returns false.

  • access: public
bool getValue ()

Redefinition of:
EasyRdf_Literal::getValue()
Returns the value of the literal.
isFalse (line 89)

Return true if the value of the literal is 'false' or '0'

  • access: public
bool isFalse ()
isTrue (line 80)

Return true if the value of the literal is 'true' or '1'

  • access: public
bool isTrue ()

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