BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SMW\DataValues\BooleanValue Class Reference
Inheritance diagram for SMW\DataValues\BooleanValue:
Collaboration diagram for SMW\DataValues\BooleanValue:

Public Member Functions

 __construct ($typeid= '')
 
 setOutputFormat ($formatstring)
 
 getShortWikiText ($linker=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linker=null)
 
 getLongHTMLText ($linker=null)
 
 getWikiValue ()
 
 getBoolean ()
 
- Public Member Functions inherited from SMWDataValue
 __construct ($typeid)
 
 setUserValue ($value, $caption=false, $approximateValue=false)
 
 setDataItem (SMWDataItem $dataItem)
 
 setProperty (SMWDIProperty $property)
 
 getProperty ()
 
 setContextPage (SMWDIWikiPage $contextPage=null)
 
 getContextPage ()
 
 setOptions (Options $options)
 
 setOption ($key, $value)
 
 getOptionValueFor ($key)
 
 isEnabledFeature ($feature)
 
 setCaption ($caption)
 
 getCaption ()
 
 getPreferredCaption ()
 
 addInfolink (SMWInfolink $link)
 
 setOutputFormat ($formatString)
 
 getOutputFormat ()
 
 addError ($error)
 
 addErrorMsg ($parameters, $type=null, $language=null)
 
 clearErrors ()
 
 getQueryDescription ($value)
 
 getDataValueFormatter ()
 
 getPropertySpecificationLookup ()
 
 getDataItem ()
 
 __toString ()
 
 getShortWikiText ($linked=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linked=null)
 
 getLongHTMLText ($linker=null)
 
 getShortText ($outputformat, $linker=null)
 
 getLongText ($outputformat, $linker=null)
 
 getInfolinkText ($outputformat, $linker=null)
 
 getWikiValue ()
 
 getTypeID ()
 
 disableServiceLinks ()
 
 getInfolinks ()
 
 getHash ()
 
 isNumeric ()
 
 isValid ()
 
 canUse ()
 
 setExtraneousFunctions (array $extraneousFunctions)
 
 getExtraneousFunctionFor ($name, array $parameters=array())
 
 getErrorText ()
 
 getErrors ()
 

Protected Member Functions

 parseUserValue ($value)
 
 loadDataItem (DataItem $dataItem)
 
 getStandardCaption ($useformat)
 
- Protected Member Functions inherited from SMWDataValue
 parseUserValue ($value)
 
 loadDataItem (SMWDataItem $dataItem)
 
 getServiceLinkParams ()
 
 checkAllowedValues ()
 
 convertDoubleWidth ($value)
 

Protected Attributes

 $trueCaption
 
 $falseCaption
 
- Protected Attributes inherited from SMWDataValue
 $m_dataitem
 
 $m_property = null
 
 $m_contextPage = null
 
 $m_caption
 
 $m_typeid
 
 $m_outformat = false
 
 $approximateValue = false
 

Additional Inherited Members

- Static Public Member Functions inherited from SMWDataValue
static prepareValue (&$value, &$comparator)
 
- Public Attributes inherited from SMWDataValue
const OPT_USER_LANGUAGE = 'user.language'
 
const OPT_CONTENT_LANGUAGE = 'content.language'
 

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

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