| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 625 lines (21 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Search:: (16 methods):
__construct()
show()
getSearchFormHTML()
addSortTool()
isNamespaceAssistanceAvailable()
isFragmentAssistanceAvailable()
addSearchAssistanceElements()
addFragmentBehaviorLinks()
addNamespaceSelector()
getAdditionalNamespacesFromResults()
addDateSelector()
getSearchIntroHTML()
createPagenameFromQuery()
getPageLookupHTML()
getFulltextResultsHTML()
restrictQueryToNSLink()
| __construct(array $pageLookupResults, array $fullTextResults, $highlight) X-Ref |
| Search constructor. param: array $pageLookupResults pagename lookup results in the form [pagename => pagetitle] param: array $fullTextResults fulltext search results in the form [pagename => #hits] param: array $highlight array of strings to be highlighted |
| show() X-Ref |
| display the search result return: void |
| getSearchFormHTML($query) X-Ref |
| Get a form which can be used to adjust/refine the search return: string param: string $query |
| addSortTool(Form $searchForm) X-Ref |
| Add elements to adjust how the results are sorted param: Form $searchForm |
| isNamespaceAssistanceAvailable(array $parsedQuery) X-Ref |
| Check if the query is simple enough to modify its namespace limitations without breaking the rest of the query return: bool param: array $parsedQuery |
| isFragmentAssistanceAvailable(array $parsedQuery) X-Ref |
| Check if the query is simple enough to modify the fragment search behavior without breaking the rest of the query return: bool param: array $parsedQuery |
| addSearchAssistanceElements(Form $searchForm) X-Ref |
| Add the elements to be used for search assistance param: Form $searchForm |
| addFragmentBehaviorLinks(Form $searchForm) X-Ref |
| Add the elements to adjust the fragment search behavior param: Form $searchForm |
| addNamespaceSelector(Form $searchForm) X-Ref |
| Add the elements for the namespace selector param: Form $searchForm |
| getAdditionalNamespacesFromResults($baseNS) X-Ref |
| Parse the full text results for their top namespaces below the given base namespace return: array an associative array with namespace => #number of found pages, sorted descending param: string $baseNS the namespace within which was searched, empty string for root namespace |
| addDateSelector(Form $searchForm) X-Ref |
param: Form $searchForm |
| getSearchIntroHTML($query) X-Ref |
| Build the intro text for the search page return: string param: string $query the search query |
| createPagenameFromQuery($parsedQuery) X-Ref |
| Create a pagename based the parsed search query return: string pagename constructed from the parsed query param: array $parsedQuery |
| getPageLookupHTML($data) X-Ref |
| Build HTML for a list of pages with matching pagenames return: string param: array $data search results |
| getFulltextResultsHTML($data, $highlight) X-Ref |
| Build HTML for fulltext search results or "no results" message return: string param: array $data the results of the fulltext search param: array $highlight the terms to be highlighted in the results |
| restrictQueryToNSLink($ns) X-Ref |
| create a link to restrict the current query to a namespace return: false|string param: false|string $ns the namespace to which to restrict the query |