|
MediaWiki master
|
Inherits MediaWiki\FileRepo\ThumbnailEntryPoint.
Protected Member Functions | |
| extractThumbRequestInfo ( $thumbRel) | |
| Convert pathinfo type parameter, into normal request parameters. | |
| handleRequest () | |
Protected Member Functions inherited from MediaWiki\FileRepo\ThumbnailEntryPoint | |
| doPrepareForOutput () | |
| Prepare for sending the output. | |
| generateThumbnail (File $file, array $params, $thumbName, $thumbPath) | |
| Actually try to generate a new thumbnail. | |
| streamThumb (array $params) | |
| Stream a thumbnail specified by parameters. | |
| thumbError ( $status, $msgHtml, $msgText=null, $context=[]) | |
| Output a thumbnail generation error message. | |
| thumbErrorText ( $status, $msgText) | |
| Output a thumbnail generation error message. | |
Protected Member Functions inherited from MediaWiki\MediaWikiEntryPoint | |
| commitMainTransaction () | |
| This function commits all DB and session changes as needed before the client can receive a response (in case DB commit fails) and thus also before the response can trigger a subsequent related request by the client. | |
| commitOutputBuffer () | |
| Ends the current output buffer, appending its content to the parent buffer. | |
| disableModDeflate () | |
| discardAllOutput () | |
| Discards all buffered output, down to the capture buffer level. | |
| discardOutputBuffer () | |
| doPostOutputShutdown () | |
| Forces the response to be sent to the client and then does work that can be done after the user gets the HTTP response, so they don't block on it. | |
| doSetup () | |
| Perform any setup needed before execute() is called. | |
| drainOutputBuffer () | |
| Returns the content of the current output buffer and clears it. | |
| enterPostSendMode () | |
| Disables all output to the client. | |
| exit (int $code=0) | |
| fastCgiFinishRequest () | |
| Calls fastcgi_finish_request if possible. | |
| flushOutputBuffer () | |
| Flush buffered output to the client. | |
| getBlockManager () | |
| getConfig (string $key) | |
| getContext () | |
| getDBLoadBalancerFactory () | |
| getEnv (string $name) | |
| Returns the value of an environment variable. | |
| getIni (string $name) | |
| Returns the value of an ini option. | |
| getJobQueueGroupFactory () | |
| getJobRunner () | |
| getMessageCache () | |
| getOutputBufferLength () | |
| getOutputBufferLevel () | |
| Returns the output buffer level. | |
| getOutputBufferStatus () | |
| getReadOnlyMode () | |
| getRequest () | |
| getRequestURL () | |
| Returns the current request's path and query string (not a full URL), like PHP's built-in $_SERVER['REQUEST_URI']. | |
| getResponse () | |
| getServerInfo (string $key, $default=null) | |
| getServiceContainer () | |
| Returns the main service container. | |
| getSpecialPageFactory () | |
| getStatsdDataFactory () | |
| getStatsFactory () | |
| getStatusCode () | |
| getUrlUtils () | |
| handleTopLevelError (Throwable $e) | |
| Report a top level error. | |
| hasFastCgi () | |
| header (string $header, bool $replace=true, int $status=0) | |
| inPostSendMode () | |
| Whether enterPostSendMode() has been called. | |
| isCli () | |
| outputResponsePayload ( $content) | |
| Print a response body to the current buffer (if there is one) or the server (otherwise) | |
| postOutputShutdown () | |
| Forces the response to be sent to the client and then does work that can be done after the user gets the HTTP response, so they don't block on it. | |
| prepareForOutput () | |
| Prepare for sending the output. | |
| print (string $data) | |
| restInPeace () | |
| Ends this task peacefully. | |
| schedulePostSendJobs () | |
| If enabled, after everything specific to this request is done, occasionally run jobs. | |
| setIniOption (string $name, $value) | |
| setup () | |
| Perform any setup needed before execute() is called. | |
| shouldDoHttpRedirect () | |
| Check if an HTTP->HTTPS redirect should be done. | |
| startOutputBuffer (?callable $callback=null) | |
| Adds a new output buffer level. | |
| status (int $code) | |
| triggerAsyncJobs ( $n, LoggerInterface $runJobsLogger) | |
| triggerError (string $message, int $level=E_USER_NOTICE) | |
| Triggers a PHP runtime error. | |
| triggerSyncJobs ( $n) | |
Additional Inherited Members | |
Public Member Functions inherited from MediaWiki\FileRepo\ThumbnailEntryPoint | |
| execute () | |
| Main entry point. | |
Public Member Functions inherited from MediaWiki\MediaWikiEntryPoint | |
| __construct (IContextSource $context, EntryPointEnvironment $environment, MediaWikiServices $mediaWikiServices) | |
| enableOutputCapture () | |
| Enable capturing of the current output buffer. | |
| getCapturedOutput () | |
| Stop capturing and return all output. | |
| getRequestPathSuffix ( $basePath) | |
| If the request URL matches a given base path, extract the path part of the request URL after that base, and decode escape sequences in it. | |
| run () | |
| Main app life cycle: Calls doSetup(), execute(), prepareForOutput(), and postOutputShutdown(). | |
Static Public Member Functions inherited from MediaWiki\MediaWikiEntryPoint | |
| static | emitBufferedStats (StatsFactory $statsFactory) |
| Send out any buffered stats according to sampling rules. | |
Protected Attributes inherited from MediaWiki\MediaWikiEntryPoint | |
| EntryPointEnvironment | $environment |
| MediaWikiServices | $mediaWikiServices |
Definition at line 19 of file Thumbnail404EntryPoint.php.
|
protected |
Convert pathinfo type parameter, into normal request parameters.
So for example, if the request was redirected from /w/images/thumb/a/ab/Foo.png/120px-Foo.png. The $thumbRel parameter of this function would be set to "a/ab/Foo.png/120px-Foo.png". This method is responsible for turning that into an array with the following keys:
Transform specific parameters are set later via extractThumbParams().
| string | $thumbRel | Thumbnail path relative to the thumb zone |
Definition at line 67 of file Thumbnail404EntryPoint.php.
References MediaWiki\MediaWikiEntryPoint\getServiceContainer().
Referenced by MediaWiki\FileRepo\Thumbnail404EntryPoint\handleRequest().
|
protected |
Reimplemented from MediaWiki\FileRepo\ThumbnailEntryPoint.
Definition at line 21 of file Thumbnail404EntryPoint.php.
References MediaWiki\FileRepo\Thumbnail404EntryPoint\extractThumbRequestInfo(), MediaWiki\MediaWikiEntryPoint\getConfig(), MediaWiki\MediaWikiEntryPoint\getRequestPathSuffix(), MediaWiki\MediaWikiEntryPoint\getServiceContainer(), MediaWiki\FileRepo\ThumbnailEntryPoint\streamThumb(), MediaWiki\FileRepo\ThumbnailEntryPoint\thumbError(), and MediaWiki\MainConfigNames\ThumbPath.