Lines Matching refs:statement
12 protected $statement; variable in dokuwiki\\plugin\\struct\\meta\\QueryBuilderWhere
23 * @param null|string $statement The statement or null if this should hold sub statments
25 public function __construct(QueryBuilder $QB, $type = 'AND', $statement = null) argument
29 if ($statement === null) {
30 $this->statement = [];
32 $this->statement = $statement;
39 * @param string $statement
42 public function whereAnd($statement) argument
44 return $this->where('AND', $statement);
53 public function whereOr($statement) argument
55 return $this->where('OR', $statement);
82 * @param null|string $statement null creates a new sub clause
86 public function where($op = 'AND', $statement = null) argument
88 if (!is_array($this->statement)) {
94 $where = new QueryBuilderWhere($this->QB, $op, $statement);
95 $this->statement[] = $where;
97 if ($statement) {
118 if (!$this->statement) return '';
123 if (is_array($this->statement)) {
126 foreach ($this->statement as $where) {
132 $sql .= $this->statement;