diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/TrueCondition.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/TrueCondition.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/TrueCondition.php b/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/TrueCondition.php new file mode 100644 index 00000000..5ec622d5 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/QueryEngine/Condition/TrueCondition.php @@ -0,0 +1,26 @@ +<?php + +namespace SMW\SPARQLStore\QueryEngine\Condition; + +/** + * Represents a condition that matches everything. Weak conditions (see + * SMWSparqlCondition::$weakConditions) might be still be included to + * enable ordering (selecting sufficient data to order by). + * + * @ingroup SMWStore + * + * @license GNU GPL v2+ + * @since 1.6 + * + * @author Markus Krötzsch + */ +class TrueCondition extends Condition { + + public function getCondition() { + return ''; + } + + public function isSafe() { + return false; + } +} |