private function createQuery($queryString, $mode, array $printouts = array()) { $description = $this->queryParser->getQueryDescription($queryString); foreach ($printouts as $printout) { $property = DIProperty::newFromUserLabel($printout); $propertyValue = new PropertyValue('__pro'); $propertyValue->setDataItem($property); $description->addPrintRequest(new PrintRequest(PrintRequest::PRINT_PROP, null, $propertyValue)); } $query = new Query($description, false, false); $query->setUnboundlimit($this->queryLimit); $query->setOffset($this->queryOffset); $query->querymode = $mode; return $query; }