* update UploadComplete hook, the object is now a subclass of UploadBase

* whitespaces fixes
This commit is contained in:
Alexandre Emsenhuber 2009-07-21 11:48:52 +00:00
parent 135e87fb3e
commit 34342ce7c2

View file

@ -68,7 +68,7 @@ email notification when an article is shown may add:
if ($wgNotifyArticle) {
wfNotifyArticleShow($article));
}
}
}
Using a hook-running strategy, we can avoid having all this option-specific
stuff in our mainline code. Using hooks, the function becomes:
@ -270,7 +270,7 @@ is enabled ( $wgUseAjax = true; ).
'AlternateEdit': before checking if an user can edit a page and
before showing the edit form ( EditPage::edit() ). This is triggered
on &action=edit.
$EditPage : the EditPage object
$EditPage: the EditPage object
'APIAfterExecute': after calling the execute() method of an API module.
Use this to extend core API modules.
@ -1443,8 +1443,8 @@ string $tempName: filesystem path to the temporary file for checks
string &$error: output: HTML error to show if upload canceled by returning false
'UploadComplete': Upon completion of a file upload
$uploadForm: Upload form object. File can be accessed by
$uploadForm->mLocalFile.
$uploadBase: UploadBase (or subclass) object. File can be accessed by
$uploadBase->getLocalFile().
'User::mailPasswordInternal': before creation and mailing of a user's new
temporary password
@ -1469,7 +1469,6 @@ $result: Pointer to result returned if hook returns false. If null is returned,
$user: User (object) whose permission is being checked
&$canSend: bool set on input, can override on output
'UserClearNewTalkNotification': called when clearing the
"You have new messages!" message, return false to not delete it
$user: User (object) that'll clear the message
@ -1515,7 +1514,7 @@ $user: User object
&$groups: List of implicit (automatically-assigned) groups
'UserGetReservedNames': allows to modify $wgReservedUsernames at run time
*&$reservedUsernames: $wgReservedUsernames
&$reservedUsernames: $wgReservedUsernames
'UserGetRights': Called in User::getRights()
$user: User to get rights for