src/CwpSearchResult.php
protected function getLink($terms, $format = null)
    {
        if (!$terms) {
            return null;
        }
        $link = 'search/SearchForm?Search='.rawurlencode($terms);
        if ($format) {
            $link .= '&format='.rawurlencode($format);
        }
        return $link;
    }
protected function getLink($terms, $format = null)
    {
        if (!$terms) {
            return null;
        }
        $link = 'search/SearchForm?Search='.rawurlencode($terms);
        if ($format) {
            $link .= '&format='.rawurlencode($format);
        }
        return $link;
    }
protected function getLink ( $ terms , $ format = null ) { if ( ! $ terms ) { return null ; } $ link = 'search/SearchForm?Search=' . rawurlencode ( $ terms ) ; if ( $ format ) { $ link .= '&format=' . rawurlencode ( $ format ) ; } return $ link ; }
Get a search link for given terms

@param string $terms
@return string|null
Get a search link for given terms