Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function buildSelectQuery(ISelectBuilder $query)
 {
     $distinctSql = $query->getDistinct() ? ' DISTINCT' : '';
     $noCache = $query->getCacheDisabled() ? ' SQL_NO_CACHE' : '';
     $calcFoundRows = $query->getUseCalcFoundRows() ? 'SQL_CALC_FOUND_ROWS ' : '';
     $result = 'SELECT' . $noCache . $distinctSql . ' ' . $calcFoundRows . $this->buildSelectQueryBody($query) . $this->buildOrderByPart($query) . $this->buildLimitPart($query);
     return $result;
 }