Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\DataValues\BooleanValue Class Reference
Collaboration diagram for SMW\DataValues\BooleanValue:
Collaboration graph
[legend]

Public Member Functions

 __construct ($typeid= '')
 
 setOutputFormat ($formatstring)
 
 getShortWikiText ($linker=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linker=null)
 
 getLongHTMLText ($linker=null)
 
 getWikiValue ()
 
 getBoolean ()
 

Protected Member Functions

 parseUserValue ($value)
 
 loadDataItem (DataItem $dataItem)
 
 getStandardCaption ($useformat)
 

Protected Attributes

 $trueCaption
 
 $falseCaption
 

Detailed Description

This datavalue implements the handling of Boolean datavalues.

GNU GPL v2+

Since
2.4
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\DataValues\BooleanValue::__construct (   $typeid = '')
Parameters
string$typeid

Member Function Documentation

SMW\DataValues\BooleanValue::getBoolean ( )
Since
1.6
Returns
boolean
SMW\DataValues\BooleanValue::getLongHTMLText (   $linker = null)
See also
DataValue::getLongHTMLText
SMW\DataValues\BooleanValue::getLongWikiText (   $linker = null)
See also
DataValue::getLongWikiText
SMW\DataValues\BooleanValue::getShortHTMLText (   $linker = null)
See also
DataValue::getShortHTMLText
SMW\DataValues\BooleanValue::getShortWikiText (   $linker = null)
See also
DataValue::getShortWikiText
SMW\DataValues\BooleanValue::getStandardCaption (   $useformat)
protected

Get text for displaying the value of this property, or false if not valid.

Parameters
$useformatbool, true if the output format should be used, false if the returned text should be parsable
Returns
string
SMW\DataValues\BooleanValue::getWikiValue ( )
See also
DataValue::getWikiValue
SMW\DataValues\BooleanValue::loadDataItem ( DataItem  $dataItem)
protected
See also
DataValue::loadDataItem
Parameters
DataItem$dataItem
Returns
boolean
SMW\DataValues\BooleanValue::parseUserValue (   $value)
protected
See also
DataValue::parseUserValue
SMW\DataValues\BooleanValue::setOutputFormat (   $formatstring)
See also
DataValue::setOutputFormat

Member Data Documentation

SMW\DataValues\BooleanValue::$falseCaption
protected
SMW\DataValues\BooleanValue::$trueCaption
protected

The documentation for this class was generated from the following file: