getSearchQuery(); $search = new DocumentationSearch(); $search->setQuery($query); $search->setVersions($this->getSearchedVersions()); $search->setModules($this->getSearchedEntities()); $search->setOutputController($this->owner); return $search->renderResults(); } /** * Returns an search form which allows people to express more complex rules * and options than the plain search form. * * @return Form */ public function AdvancedSearchForm() { return new DocumentationAdvancedSearchForm($this->owner); } /** * @return bool */ public function getAdvancedSearchEnabled() { return Config::inst()->get("DocumentationSearch", 'advanced_search_enabled'); } }