/** * Gets a SMWInfolink object that allows linking to a display of the query result. * * @since 1.8 * * @param SMWQueryResult $res * @param $outputMode * * @return SMWInfolink */ protected function getLink(SMWQueryResult $res, $outputMode) { $link = $res->getLink(); $link->setCaption($this->getSearchLabel($outputMode)); foreach ($this->fullParams as $param) { if (!$param->wasSetToDefault() && !($param->getName() == 'limit' && $param->getValue() === 0)) { $link->setParameter($param->getOriginalValue(), $param->getName()); } } return $link; }