MediaWiki master
opensearch_desc.php File Reference

The web entry point for generating an OpenSearch description document. More...

Go to the source code of this file.

Variables

 $ctype = $wgRequest->getVal( 'ctype' )
 
 $url = $wgRestPath . '/v1/search'
 
const MW_ENTRY_POINT 'opensearch_desc'
 
const MW_NO_SESSION 1
 

Detailed Description

The web entry point for generating an OpenSearch description document.

See http://www.opensearch.org/ for the specification of the OpenSearch "description" document. In a nut shell, this tells browsers how and where to submit submit search queries to get a search results page back, as well as how to get typeahead suggestions (see ApiOpenSearch).

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 opensearch_desc.php.

Variable Documentation

◆ $ctype

$ctype = $wgRequest->getVal( 'ctype' )

Definition at line 38 of file opensearch_desc.php.

Referenced by RawAction\getContentType().

◆ $url

$url = $wgRestPath . '/v1/search'

Definition at line 37 of file opensearch_desc.php.

Referenced by ThumbnailImage\__construct(), Interwiki\__construct(), MWHttpRequest\__construct(), GuzzleHttpRequest\__construct(), MediaWiki\Search\Entity\SearchResultThumbnail\__construct(), MediaWiki\Sparql\SparqlClient\__construct(), MediaWiki\SpecialPage\SpecialPage\addFeedLinks(), MediaWiki\Output\OutputPage\addParserOutputMetadata(), ApiQuerySiteinfo\appendRightsInfo(), ExternalStoreDB\batchFetchFromURLs(), ExternalStoreMedium\batchFetchFromURLs(), ExternalStoreMemory\batchFetchFromURLs(), ExternalStoreMwstore\batchFetchFromURLs(), MediaWiki\Specials\SpecialUserLogin\beforeExecute(), ChangesFeed\buildItems(), MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), FormatMetadata\collapseContactInfo(), CgzCopyTransaction\commit(), MediaWiki\MediaWikiEntryPoint\commitMainTransaction(), MediaWiki\Http\HttpRequestFactory\create(), LocalFile\deleteOldFile(), MediaWiki\Installer\Installer\dirIsExecutable(), MediaWiki\Specials\SpecialRedirect\dispatchFile(), MediaWiki\Deferred\CdnCacheUpdate\doUpdate(), MediaWiki\Installer\Installer\envCheckUploadsDirectory(), MediaWiki\Installer\Installer\envCheckUploadsServerResponse(), MediaWiki\SpecialPage\ContributionsSpecialPage\execute(), MediaWiki\Specials\SpecialGoToInterwiki\execute(), MediaWiki\Specials\SpecialSearch\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\SpecialPage\RedirectSpecialPage\execute(), ImportSiteScripts\execute(), MediaWiki\SpecialPage\SpecialPageFactory\executePath(), MediaWiki\Storage\SqlBlobStore\expandBlob(), ExternalStoreDB\fetchFromURL(), ExternalStoreHttp\fetchFromURL(), ExternalStoreMemory\fetchFromURL(), ExternalStoreMwstore\fetchFromURL(), ExternalStore\fetchFromURL(), ExternalStoreAccess\fetchFromURL(), ExternalStoreAccess\fetchFromURLs(), PopulateInterwiki\fetchLinks(), ImportSiteScripts\fetchScriptList(), CoreParserFunctions\filepath(), MediaWiki\Specials\SpecialLinkSearch\formatResult(), MediaWiki\Http\HttpRequestFactory\get(), MediaWiki\WikiMap\WikiMap\getCanonicalServerInfoForAllWikis(), MediaWiki\Title\Title\getCanonicalURL(), MediaWiki\Shell\ShellboxClientFactory\getClient(), TransformationalImageHandler\getClientScalingThumbnailImage(), Wikimedia\Http\MultiHttpClient\getCurlHandle(), ForeignAPIFile\getDescriptionShortUrl(), LocalFile\getDescriptionShortUrl(), MediaWiki\Specials\SpecialVersion\getEntryPointInfo(), MediaWiki\Parser\Parser\getExternalLinkAttribs(), MediaWiki\Parser\Parser\getExternalLinkRel(), ChangesFeed\getFeedObject(), SwiftFileBackend\getFileHttpUrl(), MediaWiki\Parser\Parsoid\Config\DataAccess\getFileInfo(), File\getFilePageThumbUrl(), MWHttpRequest\getFinalUrl(), MediaWiki\Installer\WebInstaller\getFingerprint(), MediaWiki\Title\Title\getFullURL(), MediaWiki\ResourceLoader\Module\getHeaders(), MediaWiki\Utils\GitInfo\getHeadViewUrl(), MediaWiki\Rest\ResponseFactory\getHyperLink(), MediaWiki\ExternalLinks\LinkFilter\getIndexedUrlsNonReversed(), ApiQueryImageInfo\getInfo(), MediaWiki\Title\Title\getInternalURL(), MediaWiki\Title\Title\getLocalURL(), MWExceptionHandler\getLogMessage(), RecentChange\getNotifyUrl(), MediaWiki\Site\MediaWikiSite\getPageUrl(), MediaWiki\Site\Site\getPageUrl(), MediaWiki\Request\WebRequest\getPathInfo(), MediaWiki\Utils\GitInfo\getRemoteUrl(), ImageHandler\getScriptedTransform(), MediaWiki\ResourceLoader\FileModule\getScriptURLsForDebug(), MediaWiki\ResourceLoader\Module\getScriptURLsForDebug(), ExternalStoreFactory\getStoreForUrl(), ExternalStoreFactory\getStoreLocationFromUrl(), MediaWiki\ResourceLoader\Module\getStyleURLsForDebug(), HistoryBlobStub\getText(), MediaWiki\Installer\WebInstaller\getUrl(), Interwiki\getURL(), File\getUrl(), MediaTransformOutput\getUrl(), SearchSuggestion\getURL(), UploadStashFile\getUrl(), ExternalStoreFactory\getUrlsByProtocol(), MediaWiki\WikiMap\WikiMap\getWikiFromUrl(), FileRepo\getZoneUrl(), MediaWiki\Specials\SpecialSearch\goResult(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReauthBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReturnBeforeExecute(), MediaWiki\LinkedData\PageDataRequestHandler\httpContentNegotiation(), ImageHistoryList\imageHistoryLine(), UploadFromUrl\initialize(), ExternalStoreAccess\insert(), ExternalStore\insert(), MediaWiki\Parser\Parser\interwikiTransclude(), UploadFromUrl\isAllowedHost(), UploadFromUrl\isAllowedUrl(), UploadFromUrl\isValidRequest(), FileRepo\isVirtualUrl(), MediaWiki\Html\Html\linkedScript(), MediaWiki\Html\Html\linkedStyle(), Skin\logoText(), MediaWiki\Linker\LinkRenderer\makeBrokenLink(), MediaWiki\Linker\Linker\makeExternalImage(), MediaWiki\Linker\Linker\makeExternalLink(), MediaWiki\Linker\LinkRenderer\makeExternalLink(), MediaWiki\WikiMap\WikiMap\makeForeignLink(), MediaWiki\ExternalLinks\LinkFilter\makeIndexes(), MediaWiki\Installer\WebInstaller\makeLinkItem(), MediaWiki\ResourceLoader\ClientHtml\makeLoad(), MediaWiki\Linker\Linker\makeMediaLinkFile(), MediaWiki\Linker\LinkRenderer\makePreloadedLink(), MediaWiki\Content\CssContentHandler\makeRedirectContent(), MediaWiki\Content\JavaScriptContentHandler\makeRedirectContent(), MediaWiki\Linker\Linker\makeThumbLink2(), MediaWiki\Rest\Handler\CreationHandler\mapActionModuleResponse(), RecompressTracked\moveTextRow(), ImportStreamSource\newFromInterwiki(), MediaWiki\Title\Title\newFromURL(), ImportStreamSource\newFromURL(), MediaWiki\Parser\Parser\normalizeLinkUrl(), MediaWiki\Site\MediaWikiPageNameNormalizer\normalizePageName(), MediaWiki\SpecialPage\SpecialRedirectWithAction\onFormSubmit(), MediaWiki\Specials\SpecialDiff\onFormSubmit(), MediaWiki\Specials\SpecialNewSection\onFormSubmit(), MediaWiki\Specials\SpecialPermanentLink\onFormSubmit(), MediaWiki\HookContainer\HookRunner\onGetCanonicalURL(), MediaWiki\HookContainer\HookRunner\onGetFullURL(), MediaWiki\HookContainer\HookRunner\onGetInternalURL(), MediaWiki\HookContainer\HookRunner\onGetLocalURL(), MediaWiki\HookContainer\HookRunner\onGetLocalURL__Article(), MediaWiki\HookContainer\HookRunner\onGetLocalURL__Internal(), MediaWiki\HookContainer\HookRunner\onIRCLineURL(), MediaWiki\HookContainer\HookRunner\onIsUploadAllowedFromUrl(), MediaWiki\HookContainer\HookRunner\onLinkerMakeExternalImage(), MediaWiki\HookContainer\HookRunner\onLinkerMakeExternalLink(), MediaWiki\HookContainer\HookRunner\onSpecialSearchGoResult(), MediaWiki\Output\OutputPage\output(), MediaWiki\Utils\UrlUtils\parse(), MWHttpRequest\parseCookies(), ExternalStoreDB\parseURL(), MediaWiki\Actions\ActionEntryPoint\performRequest(), MediaWiki\Http\HttpRequestFactory\post(), Skin\printSource(), TextPassDumper\processOptions(), MediaWiki\Deferred\CdnCacheUpdate\purge(), MediaWiki\Installer\WebInstallerOutput\redirect(), MediaWiki\Output\OutputPage\redirect(), MediaWiki\Http\HttpRequestFactory\request(), FileRepo\resolveVirtualUrl(), MediaWiki\User\User\sendConfirmationMail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendPasswordResetEmail(), MediaWiki\Output\OutputPage\setCanonicalUrl(), MediaWiki\Output\OutputPage\setCopyrightUrl(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\setParserOutput(), MediaWiki\Request\FauxRequest\setRequestURL(), SearchSuggestion\setURL(), MediaWiki\Html\Html\srcSet(), ExternalStoreMwstore\store(), UploadSourceAdapter\stream_open(), MediaWiki\Output\OutputPage\styleLink(), MediaWiki\Preferences\DefaultPreferencesFactory\submitForm(), MediaWiki\Specials\SpecialPreferences\submitReset(), MediaWiki\FileRepo\ThumbnailEntryPoint\thumbError(), ThumbnailImage\toHtml(), MediaWiki\Output\OutputPage\transformFilePath(), MediaWiki\MediaWikiEntryPoint\triggerAsyncJobs(), wfAppendQuery(), wfExpandIRI(), wfExpandUrl(), wfMatchesDomainList(), and wfParseUrl().

◆ MW_ENTRY_POINT

const MW_ENTRY_POINT 'opensearch_desc'

Definition at line 33 of file opensearch_desc.php.

◆ MW_NO_SESSION

const MW_NO_SESSION 1

Definition at line 31 of file opensearch_desc.php.