Exemple #1
0
 /**
  * @see SMWStore::getQueryResult
  *
  * @since 1.8
  * @param SMWQuery $query
  * @return SMWQueryResult|string|integer depends on $query->querymode
  */
 public function getQueryResult(SMWQuery $query)
 {
     wfProfileIn('SMWSQLStore3::getQueryResult (SMW)');
     $qe = new SMWSQLStore3QueryEngine($this, wfGetDB(DB_SLAVE));
     $result = $qe->getQueryResult($query);
     wfProfileOut('SMWSQLStore3::getQueryResult (SMW)');
     return $result;
 }
Exemple #2
0
 protected function fetchQueryResult(SMWQuery $query)
 {
     $qe = new SMWSQLStore3QueryEngine($this, wfGetDB(DB_SLAVE));
     return $qe->getQueryResult($query);
 }