MediaWiki fundraising/REL1_35
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. More...
Go to the source code of this file.
Functions | |
buildCommonApiParams ( $isScrollable=true) | |
The set of api parameters that are shared between api calls that call the SearchEngine. | |
buildProfileApiParam () | |
Build the profile api param definitions. | |
buildSearchEngine (array $params=null) | |
Build the search engine to use. | |
getContext () | |
getSearchProfileParams () | |
Variables | |
trait | SearchApi |
Traits for API components that use a SearchEngine. | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file SearchApi.php.
buildCommonApiParams | ( | $isScrollable = true | ) |
The set of api parameters that are shared between api calls that call the SearchEngine.
Primarily this defines parameters that are utilized by self::buildSearchEngine().
bool | $isScrollable | True if the api offers scrolling |
Definition at line 47 of file SearchApi.php.
References buildProfileApiParam(), MediaWiki\MediaWikiServices\getSearchEngineConfig(), and NS_MAIN.
Referenced by ApiOpenSearch\getAllowedParams(), ApiQueryPrefixSearch\getAllowedParams(), and ApiQuerySearch\getAllowedParams().
|
private |
Build the profile api param definitions.
Makes bold assumption only one search engine is available, ensure that is true before calling.
Definition at line 104 of file SearchApi.php.
References getContext(), getSearchProfileParams(), and getUser().
Referenced by buildCommonApiParams().
buildSearchEngine | ( | array | $params = null | ) |
Build the search engine to use.
If $params is provided then the following searchEngine options will be set:
string[] | null | $params | API request params (must be sanitized by ApiBase::extractRequestParams() before) |
Definition at line 153 of file SearchApi.php.
References $type, and getSearchProfileParams().
Referenced by ApiQueryPrefixSearch\run(), ApiQuerySearch\run(), and ApiOpenSearch\search().
|
abstract |
Referenced by Action\addHelpLink(), Article\addHelpLink(), OutputPage\addSubtitle(), Article\adjustDisplayTitle(), SkinTemplate\buildContentNavigationUrls(), UsersPager\buildGroupLink(), Skin\buildNavUrls(), buildProfileApiParam(), CategoryPage\closeShowCategory(), Article\commitRollback(), Article\confirmDelete(), ImagePage\createXmlOptionStringForLanguage(), Article\delete(), ImagePage\delete(), Article\doDelete(), ImagePage\doRenderLangOpt(), Article\doRollback(), SpecialContributions\execute(), ApiOptions\execute(), ApiParse\execute(), ApiMain\executeAction(), ApiMain\executeActionWithErrorHandling(), ApiQueryRevisionsBase\extractDeprecatedContent(), Article\fetchRevisionRecord(), SpecialNewpages\form(), ChangesList\formatCharacterDifference(), ContribsPager\formatRow(), DifferenceEngine\generateContentDiffBody(), DifferenceEngine\generateTextDiffBody(), SpecialEditWatchlist\getClearForm(), SpecialPage\getConfig(), SpecialUpload\getDupeWarning(), SpecialRecentChanges\getExtraOptions(), ApiBase\getFinalDescription(), ApiBase\getFinalParamDescription(), ApiBase\getFinalSummary(), ImageListPager\getForm(), SpecialContributions\getForm(), SpecialPage\getFullTitle(), OutputPage\getHeadLinksArray(), OutputPage\getJSVars(), Action\getLanguage(), SpecialEditWatchlist\getNormalForm(), Article\getOldIDFromRequest(), Action\getOutput(), UsersPager\getPageHeader(), Article\getParserOptions(), DifferenceEngine\getParserOutput(), ApiOptions\getPreferences(), SpecialEditWatchlist\getRawForm(), RawAction\getRawText(), Action\getRequest(), Article\getRobotPolicy(), Action\getSkin(), DifferenceEngine\getSlotDiffRenderers(), NewFilesPager\getStartBody(), Article\getSubstituteContent(), SkinVector\getTemplateData(), ImagePage\getThumbPrevText(), ImagePage\getThumbSizes(), HTMLForm\getTitle(), BaseTemplate\getTrail(), Skin\getUndeleteLink(), SpecialUpload\getUploadForm(), Action\getUser(), SpecialEditWatchlist\getWatchlistInfo(), OutputPage\headElement(), HistoryPager\historyLine(), ImagePage\imageDupes(), ImagePage\imageHistory(), ImagePage\imageLinks(), ChangesList\insertLog(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), Article\isFileCacheable(), Profiler\logData(), LogEventsList\logLine(), ChangesListSpecialPage\makeLegend(), ImagePage\makeMetadataTable(), ApiParse\makeParserOptions(), Action\msg(), SpecialPage\msg(), WatchAction\onSuccess(), ImagePage\openShowImage(), SpecialRecentChanges\outputChangesList(), OutputPage\parserOptions(), ImagePage\printSharedImageText(), ChangesList\recentChangesFlags(), Article\render(), ApiOptions\resetPreferences(), OutputPage\setHTMLTitle(), Article\setOldSubtitle(), OutputPage\setPageTitle(), OutputPage\setTitle(), Article\showDeletedRevisionHeader(), DifferenceEngine\showDiffPage(), Article\showDiffPage(), ImagePage\showError(), Article\showMissingArticle(), Article\showNamespaceHeader(), LogEventsList\showOptions(), Article\showPatrolFooter(), Article\showRedirectedFromHeader(), ImagePage\showTOC(), Article\showViewFooter(), SkinTemplate\tabAction(), DifferenceEngine\textDiff(), Article\tryFileCache(), Article\updateRestrictions(), ImagePage\uploadLinksBox(), Article\view(), CategoryPage\view(), ImagePage\view(), and Article\viewRedirect().
|
abstract |
Referenced by buildProfileApiParam(), and buildSearchEngine().