[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/jobqueue/jobs/ -> UploadFromUrlJob.php (summary)

Job for asynchronous upload-by-url. 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.

File Size: 187 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UploadFromUrlJob:: (6 methods):
  __construct()
  run()
  leaveMessage()
  storeResultInSession()
  initializeSessionData()
  getSessionData()


Class: UploadFromUrlJob  - X-Ref

Job for asynchronous upload-by-url.

This job is in fact an interface to UploadFromUrl, which is designed such
that it does not require any globals. If it does, fix it elsewhere, do not
add globals in here.

__construct( $title, $params )   X-Ref
No description

run()   X-Ref
No description

leaveMessage( $status )   X-Ref
Leave a message on the user talk page or in the session according to
$params['leaveMessage'].

param: Status $status

storeResultInSession( $result, $dataKey, $dataValue )   X-Ref
Store a result in the session data. Note that the caller is responsible
for appropriate session_start and session_write_close calls.

param: string $result The result (Success|Warning|Failure)
param: string $dataKey The key of the extra data
param: mixed $dataValue The extra data itself

initializeSessionData()   X-Ref
Initialize the session data. Sets the intial result to queued.


getSessionData( $key )   X-Ref

param: string $key
return: mixed



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1