Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -397,32 +397,32 @@ |
398 | 398 | $output: the OutputPage object ($wgOut) |
399 | 399 | |
400 | 400 | 'ArticleDelete': before an article is deleted |
401 | | -$article: the article (object) being deleted |
| 401 | +$article: the WikiPage (object) being deleted |
402 | 402 | $user: the user (object) deleting the article |
403 | 403 | $reason: the reason (string) the article is being deleted |
404 | 404 | $error: if the deletion was prohibited, the (raw HTML) error message to display |
405 | 405 | (added in 1.13) |
406 | 406 | |
407 | 407 | 'ArticleDeleteComplete': after an article is deleted |
408 | | -$article: the article that was deleted |
| 408 | +$article: the WikiPage that was deleted |
409 | 409 | $user: the user that deleted the article |
410 | 410 | $reason: the reason the article was deleted |
411 | 411 | $id: id of the article that was deleted |
412 | 412 | |
413 | 413 | 'ArticleEditUpdateNewTalk': before updating user_newtalk when a user talk page |
414 | 414 | was changed |
415 | | -$article: article (object) of the user talk page |
| 415 | +$article: WikiPage (object) of the user talk page |
416 | 416 | |
417 | 417 | 'ArticleEditUpdates': when edit updates (mainly link tracking) are made when an |
418 | 418 | article has been changed |
419 | | -$article: the article (object) |
| 419 | +$article: the WikiPage (object) |
420 | 420 | $editInfo: data holder that includes the parser output ($editInfo->output) for |
421 | 421 | that page after the change |
422 | 422 | $changed: bool for if the page was changed |
423 | 423 | |
424 | 424 | 'ArticleEditUpdatesDeleteFromRecentchanges': before deleting old entries from |
425 | 425 | recentchanges table, return false to not delete old entries |
426 | | -$article: article (object) being modified |
| 426 | +$article: WikiPage (object) being modified |
427 | 427 | |
428 | 428 | 'ArticleFromTitle': when creating an article object from a title object using |
429 | 429 | Wiki::articleFromTitle() |
— | — | @@ -430,7 +430,7 @@ |
431 | 431 | $article: article (object) that will be returned |
432 | 432 | |
433 | 433 | 'ArticleInsertComplete': After a new article is created |
434 | | -$article: Article created |
| 434 | +$article: WikiPage created |
435 | 435 | $user: User creating the article |
436 | 436 | $text: New content |
437 | 437 | $summary: Edit summary/comment |
— | — | @@ -445,33 +445,33 @@ |
446 | 446 | $destTitle: destination title (object) |
447 | 447 | |
448 | 448 | '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 |
450 | 450 | $row: row (object) returned from the database server |
451 | 451 | |
452 | 452 | '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 |
454 | 454 | $fields: fileds (array) to load from the database |
455 | 455 | |
456 | 456 | 'ArticlePrepareTextForEdit': called when preparing text to be saved |
457 | | -$article: the article being saved |
| 457 | +$article: the WikiPage being saved |
458 | 458 | $popts: parser options to be used for pre-save transformation |
459 | 459 | |
460 | 460 | 'ArticleProtect': before an article is protected |
461 | | -$article: the article being protected |
| 461 | +$article: the WikiPage being protected |
462 | 462 | $user: the user doing the protection |
463 | 463 | $protect: boolean whether this is a protect or an unprotect |
464 | 464 | $reason: Reason for protect |
465 | 465 | $moveonly: boolean whether this is for move only or not |
466 | 466 | |
467 | 467 | 'ArticleProtectComplete': after an article is protected |
468 | | -$article: the article that was protected |
| 468 | +$article: the WikiPage that was protected |
469 | 469 | $user: the user who did the protection |
470 | 470 | $protect: boolean whether it was a protect or an unprotect |
471 | 471 | $reason: Reason for protect |
472 | 472 | $moveonly: boolean whether it was for move only or not |
473 | 473 | |
474 | 474 | 'ArticlePurge': before executing "&action=purge" |
475 | | -$article: article (object) to purge |
| 475 | +$article: WikiPage (object) to purge |
476 | 476 | |
477 | 477 | 'ArticleRevisionVisibilitySet': called when changing visibility of one or more |
478 | 478 | revision of an article |
— | — | @@ -483,13 +483,13 @@ |
484 | 484 | $oldPageID: the page ID of the revision when archived (may be null) |
485 | 485 | |
486 | 486 | 'ArticleRollbackComplete': after an article rollback is completed |
487 | | -$article: the article that was edited |
| 487 | +$article: the WikiPage that was edited |
488 | 488 | $user: the user who did the rollback |
489 | 489 | $revision: the revision the page was reverted back to |
490 | 490 | $current: the reverted revision |
491 | 491 | |
492 | 492 | 'ArticleSave': before an article is saved |
493 | | -$article: the article (object) being saved |
| 493 | +$article: the WikiPage (object) being saved |
494 | 494 | $user: the user (object) saving the article |
495 | 495 | $text: the new article text |
496 | 496 | $summary: the article summary (comment) |
— | — | @@ -498,7 +498,7 @@ |
499 | 499 | $section: section # |
500 | 500 | |
501 | 501 | 'ArticleSaveComplete': After an article has been updated |
502 | | -$article: Article modified |
| 502 | +$article: WikiPage modified |
503 | 503 | $user: User performing the modification |
504 | 504 | $text: New content |
505 | 505 | $summary: Edit summary/comment |
— | — | @@ -1219,7 +1219,7 @@ |
1220 | 1220 | |
1221 | 1221 | 'NewRevisionFromEditComplete': called when a revision was inserted |
1222 | 1222 | due to an edit |
1223 | | -$article: the article edited |
| 1223 | +$article: the WikiPage edited |
1224 | 1224 | $rev: the new revision |
1225 | 1225 | $baseID: the revision ID this was based off, if any |
1226 | 1226 | $user: the editing user |