18c551fd7SAndreas Gohr<?php 28c551fd7SAndreas Gohr 38c551fd7SAndreas Gohrnamespace dokuwiki\plugin\struct\test\mock; 48c551fd7SAndreas Gohr 5*0549dcc5SAndreas Gohruse dokuwiki\plugin\struct\meta; 68c551fd7SAndreas Gohr 7*0549dcc5SAndreas Gohrclass QueryBuilder extends meta\QueryBuilder 8*0549dcc5SAndreas Gohr{ 98c551fd7SAndreas Gohr public $from; 102b5df26eSAndreas Gohr 11*0549dcc5SAndreas Gohr public function fixPlaceholders($sql) 12*0549dcc5SAndreas Gohr { 132b5df26eSAndreas Gohr return parent::fixPlaceholders($sql); 142b5df26eSAndreas Gohr } 152b5df26eSAndreas Gohr 1640bdf4fdSAndreas Gohr /** 1740bdf4fdSAndreas Gohr * for debugging where statements 1840bdf4fdSAndreas Gohr * 1940bdf4fdSAndreas Gohr * @return array ($sql, $opts) 2040bdf4fdSAndreas Gohr */ 21*0549dcc5SAndreas Gohr public function getWhereSQL() 22*0549dcc5SAndreas Gohr { 2340bdf4fdSAndreas Gohr return $this->fixPlaceholders($this->filters()->toSQL()); 2440bdf4fdSAndreas Gohr } 258c551fd7SAndreas Gohr} 26