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() |
Definition at line 19 of file SMW_QueryLanguage.php.
| 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.
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.
| string | $string | |
| integer | $defaultComparator 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.
| $comparator |
Definition at line 70 of file SMW_QueryLanguage.php.
Referenced by SMWValueDescription::getQueryString().
| static SMWQueryLanguage::initializeComparators | ( | ) | [static, protected] |
Initializes the $comparators field.
Definition at line 92 of file SMW_QueryLanguage.php.
References $comparators, $smwgQComparators, and $smwStrictComparators.
SMWQueryLanguage::$comparators = array() [static, protected] |
1.5.6