_prepareList($list); if ($list) { $query = $this->_filter['query']; $sitemapUrl = $this->_getSearchProviderUrl($providerOptions); foreach ($list as &$row) { $row['sitemapUrl'] = $sitemapUrl; $row['searchUrl'] = $this->_buildSearchUrl(Qs_Array::get($providerOptions, 'urlPattern'), $row); $titleField = Qs_Array::get($providerOptions, 'titleField', App\Search\View::DEFAULT_TITLE_FIELD); $row['searchTitle'] = Qs_Text_Mark::markSearchWords($row[$titleField], $query); if ($row['url']) { $row['searchUrl'] = Qs_Text_Mark::markSearchWords($row['url'], $query); } } } return $this; } }