r93061 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93060‎ | r93061 | r93062 >
Date:16:44, 25 July 2011
Author:aaron
Status:resolved (Comments)
Tags:
Comment:
Updated hooks docs per r91123. The UI methods are not part of the object anymore.
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -397,32 +397,32 @@
398398 $output: the OutputPage object ($wgOut)
399399
400400 'ArticleDelete': before an article is deleted
401 -$article: the article (object) being deleted
 401+$article: the WikiPage (object) being deleted
402402 $user: the user (object) deleting the article
403403 $reason: the reason (string) the article is being deleted
404404 $error: if the deletion was prohibited, the (raw HTML) error message to display
405405 (added in 1.13)
406406
407407 'ArticleDeleteComplete': after an article is deleted
408 -$article: the article that was deleted
 408+$article: the WikiPage that was deleted
409409 $user: the user that deleted the article
410410 $reason: the reason the article was deleted
411411 $id: id of the article that was deleted
412412
413413 'ArticleEditUpdateNewTalk': before updating user_newtalk when a user talk page
414414 was changed
415 -$article: article (object) of the user talk page
 415+$article: WikiPage (object) of the user talk page
416416
417417 'ArticleEditUpdates': when edit updates (mainly link tracking) are made when an
418418 article has been changed
419 -$article: the article (object)
 419+$article: the WikiPage (object)
420420 $editInfo: data holder that includes the parser output ($editInfo->output) for
421421 that page after the change
422422 $changed: bool for if the page was changed
423423
424424 'ArticleEditUpdatesDeleteFromRecentchanges': before deleting old entries from
425425 recentchanges table, return false to not delete old entries
426 -$article: article (object) being modified
 426+$article: WikiPage (object) being modified
427427
428428 'ArticleFromTitle': when creating an article object from a title object using
429429 Wiki::articleFromTitle()
@@ -430,7 +430,7 @@
431431 $article: article (object) that will be returned
432432
433433 'ArticleInsertComplete': After a new article is created
434 -$article: Article created
 434+$article: WikiPage created
435435 $user: User creating the article
436436 $text: New content
437437 $summary: Edit summary/comment
@@ -445,33 +445,33 @@
446446 $destTitle: destination title (object)
447447
448448 'ArticlePageDataAfter': after loading data of an article from the database
449 -$article: article (object) whose data were loaded
 449+$article: WikiPage (object) whose data were loaded
450450 $row: row (object) returned from the database server
451451
452452 'ArticlePageDataBefore': before loading data of an article from the database
453 -$article: article (object) that data will be loaded
 453+$article: WikiPage (object) that data will be loaded
454454 $fields: fileds (array) to load from the database
455455
456456 'ArticlePrepareTextForEdit': called when preparing text to be saved
457 -$article: the article being saved
 457+$article: the WikiPage being saved
458458 $popts: parser options to be used for pre-save transformation
459459
460460 'ArticleProtect': before an article is protected
461 -$article: the article being protected
 461+$article: the WikiPage being protected
462462 $user: the user doing the protection
463463 $protect: boolean whether this is a protect or an unprotect
464464 $reason: Reason for protect
465465 $moveonly: boolean whether this is for move only or not
466466
467467 'ArticleProtectComplete': after an article is protected
468 -$article: the article that was protected
 468+$article: the WikiPage that was protected
469469 $user: the user who did the protection
470470 $protect: boolean whether it was a protect or an unprotect
471471 $reason: Reason for protect
472472 $moveonly: boolean whether it was for move only or not
473473
474474 'ArticlePurge': before executing "&action=purge"
475 -$article: article (object) to purge
 475+$article: WikiPage (object) to purge
476476
477477 'ArticleRevisionVisibilitySet': called when changing visibility of one or more
478478 revision of an article
@@ -483,13 +483,13 @@
484484 $oldPageID: the page ID of the revision when archived (may be null)
485485
486486 'ArticleRollbackComplete': after an article rollback is completed
487 -$article: the article that was edited
 487+$article: the WikiPage that was edited
488488 $user: the user who did the rollback
489489 $revision: the revision the page was reverted back to
490490 $current: the reverted revision
491491
492492 'ArticleSave': before an article is saved
493 -$article: the article (object) being saved
 493+$article: the WikiPage (object) being saved
494494 $user: the user (object) saving the article
495495 $text: the new article text
496496 $summary: the article summary (comment)
@@ -498,7 +498,7 @@
499499 $section: section #
500500
501501 'ArticleSaveComplete': After an article has been updated
502 -$article: Article modified
 502+$article: WikiPage modified
503503 $user: User performing the modification
504504 $text: New content
505505 $summary: Edit summary/comment
@@ -1219,7 +1219,7 @@
12201220
12211221 'NewRevisionFromEditComplete': called when a revision was inserted
12221222 due to an edit
1223 -$article: the article edited
 1223+$article: the WikiPage edited
12241224 $rev: the new revision
12251225 $baseID: the revision ID this was based off, if any
12261226 $user: the editing user

Follow-up revisions

RevisionCommit summaryAuthorDate
r102565Release notes for r93061aaron20:26, 9 November 2011
r103215FU r93061, r102565:...aaron19:46, 15 November 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91123* Split off WikiPage class from Article, WikiFilePage class from ImagePage, a...aaron22:09, 29 June 2011

Comments

#Comment by 😂 (talk | contribs)   13:26, 9 August 2011

Definitely needs release notes too.

#Comment by 😂 (talk | contribs)   16:34, 9 November 2011

Changing to fixme since nobody seems to pay attention to notes left on ok revisions. ZOMG FIXME ADD RELEASE NOTES AARON.

Status & tagging log