Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\DataValues\BooleanValue Class Reference
Inheritance diagram for SMW\DataValues\BooleanValue:
Inheritance graph
[legend]
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

◆ __construct()

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

Member Function Documentation

◆ getBoolean()

SMW\DataValues\BooleanValue::getBoolean ( )
Since
1.6
Returns
boolean

◆ getLongHTMLText()

SMW\DataValues\BooleanValue::getLongHTMLText (   $linker = null)
See also
DataValue::getLongHTMLText

◆ getLongWikiText()

SMW\DataValues\BooleanValue::getLongWikiText (   $linker = null)
See also
DataValue::getLongWikiText

◆ getShortHTMLText()

SMW\DataValues\BooleanValue::getShortHTMLText (   $linker = null)
See also
DataValue::getShortHTMLText

◆ getShortWikiText()

SMW\DataValues\BooleanValue::getShortWikiText (   $linker = null)
See also
DataValue::getShortWikiText

◆ getStandardCaption()

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

◆ getWikiValue()

SMW\DataValues\BooleanValue::getWikiValue ( )
See also
DataValue::getWikiValue

◆ loadDataItem()

SMW\DataValues\BooleanValue::loadDataItem ( DataItem  $dataItem)
protected
See also
DataValue::loadDataItem
Parameters
DataItem$dataItem
Returns
boolean

◆ parseUserValue()

SMW\DataValues\BooleanValue::parseUserValue (   $value)
protected
See also
DataValue::parseUserValue

◆ setOutputFormat()

SMW\DataValues\BooleanValue::setOutputFormat (   $formatstring)
See also
DataValue::setOutputFormat

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

About | General disclaimer | Privacy policy