SMWQueryLanguage Class Reference

List of all members.

Static Public Member Functions

static getComparatorStrings ()
 Gets an array with all suported comparator strings.
static getComparatorFromString ($string, $defaultComparator=SMW_CMP_EQ)
 Gets the SMW_CMP_ for a string comparator, falling back to the $defaultComparator when none is found.
static getStringForComparator ($comparator)
 Gets the comparator string for a comparator.

Static Protected Member Functions

static initializeComparators ()
 Initializes the $comparators field.

Static Protected Attributes

static $comparators = array()


Detailed Description

Definition at line 19 of file SMW_QueryLanguage.php.


Member Function Documentation

static SMWQueryLanguage::getComparatorStrings (  )  [static]

Gets an array with all suported comparator strings.

The string for SMW_CMP_EQ, which is an empty string, is not in this list.

Since:
1.5.3
Returns:
array

Definition at line 39 of file SMW_QueryLanguage.php.

Referenced by SMWDataValue::prepareValue().

static SMWQueryLanguage::getComparatorFromString ( string,
defaultComparator = SMW_CMP_EQ 
) [static]

Gets the SMW_CMP_ for a string comparator, falling back to the $defaultComparator when none is found.

Since:
1.5.3
Parameters:
string $string
integer $defaultComparator Item of the SMW_CMP_ enum
Returns:
integer Item of the SMW_CMP_ enum

Definition at line 55 of file SMW_QueryLanguage.php.

Referenced by SMWDataValue::prepareValue().

static SMWQueryLanguage::getStringForComparator ( comparator  )  [static]

Gets the comparator string for a comparator.

Since:
1.5.3
Parameters:
$comparator 
Returns:
string

Definition at line 70 of file SMW_QueryLanguage.php.

Referenced by SMWValueDescription::getQueryString().

static SMWQueryLanguage::initializeComparators (  )  [static, protected]

Initializes the $comparators field.

Since:
1.5.3

Definition at line 92 of file SMW_QueryLanguage.php.

References $comparators, $smwgQComparators, and $smwStrictComparators.


Member Data Documentation

SMWQueryLanguage::$comparators = array() [static, protected]

Definition at line 29 of file SMW_QueryLanguage.php.

Referenced by initializeComparators().


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

Generated on Sun Mar 18 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6