xref: /plugin/struct/_test/mock/QueryBuilder.php (revision 40bdf4fd055d0b4fd5db2655fb2152be93308b6c)
18c551fd7SAndreas Gohr<?php
28c551fd7SAndreas Gohr
38c551fd7SAndreas Gohrnamespace dokuwiki\plugin\struct\test\mock;
48c551fd7SAndreas Gohr
58c551fd7SAndreas Gohruse \dokuwiki\plugin\struct\meta;
68c551fd7SAndreas Gohr
78c551fd7SAndreas Gohrclass QueryBuilder extends meta\QueryBuilder {
88c551fd7SAndreas Gohr    public $from;
92b5df26eSAndreas Gohr
102b5df26eSAndreas Gohr    public function fixPlaceholders($sql) {
112b5df26eSAndreas Gohr        return parent::fixPlaceholders($sql);
122b5df26eSAndreas Gohr    }
132b5df26eSAndreas Gohr
14*40bdf4fdSAndreas Gohr    /**
15*40bdf4fdSAndreas Gohr     * for debugging where statements
16*40bdf4fdSAndreas Gohr     *
17*40bdf4fdSAndreas Gohr     * @return array ($sql, $opts)
18*40bdf4fdSAndreas Gohr     */
19*40bdf4fdSAndreas Gohr    public function getWhereSQL() {
20*40bdf4fdSAndreas Gohr        return $this->fixPlaceholders($this->filters()->toSQL());
21*40bdf4fdSAndreas Gohr    }
228c551fd7SAndreas Gohr}
23