blob: 002282c2fe19ff1da4855abe57e165a0ebd43afc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
namespace SMW\SPARQLStore\QueryEngine\Condition;
/**
* Container class that represents a SPARQL (sub-)pattern and relevant pieces
* of associated information for using it in query building.
*
* @ingroup SMWStore
*
* @license GNU GPL v2+
* @since 1.6
*
* @author Markus Krötzsch
*/
class WhereCondition extends Condition {
/**
* The pattern string. Anything that can be used as a WHERE condition
* when put between "{" and "}".
* @var string
*/
public $condition;
/**
* Whether this condition is safe.
* @see SMWSparqlCondition::isSafe().
* @var boolean
*/
public $isSafe;
public function __construct( $condition, $isSafe, $namespaces = [] ) {
$this->condition = $condition;
$this->isSafe = $isSafe;
$this->namespaces = $namespaces;
}
public function getCondition() {
return $this->condition;
}
public function isSafe() {
return $this->isSafe;
}
}
|