_getQueryWords(), true, lmbToolkit :: instance()->getDefaultDbConnection()); return $query->getRecordSet(); } protected function _collectDecorators() { if($words = $this->_getQueryWords()) $this->addDecorator('limb/search/src/dataset/lmbSearchResultProcessor', array('words' => $words, 'matched_word_folding_radius' => 40, 'gaps_pattern' => '...', 'match_left_mark' => '', 'match_right_mark' => '', 'matching_lines_limit' => 4)); } protected function _getQueryWords() { $request = lmbToolkit :: instance()->getRequest(); $query = $request->get('query_string'); return explode(' ', htmlspecialchars($query)); } } ?>