Docs For Class EasyRdf_Literal_Boolean

## Class EasyRdf_Literal_Boolean

Description

Class that represents an RDF Literal of datatype xsd:boolean

- copyright: Copyright (c) 2009-2011 Nicholas J Humfrey
- link: http://www.w3.org/TR/xmlschema-2/#boolean
- license: http://www.opensource.org/licenses/bsd-license.php

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 isFalse ()
bool isTrue ()
string __toString ()
Methods
Constructor __construct (line 58)

Constructor for creating a new boolean literal

Non-boolean values will be cast to boolean.

- 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

isFalse (line 76)

Return true if the value of the literal is false

- access: public

bool isFalse ()
isTrue (line 67)

Return true if the value of the literal is true

- access: public

bool isTrue ()
__toString (line 85)

Magic method to return the value of a boolean when casted to string

- return: The value of the boolean literal ('true' or 'false')
- access: public

string __toString ()

Redefinition of:

EasyRdf_Literal::__toString()
  Magic method to return the value of a literal when casted to string

#### 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, 20 Jul 2011 19:54:03 +0100 by phpDocumentor 1.4.3