MediaWiki REL1_35
HookRunner.php
Go to the documentation of this file.
1<?php
2
4
5use Config;
7use Skin;
8
22class HookRunner implements
566{
568 private $container;
569
571 $this->container = $container;
572 }
573
574 public function onAbortAutoblock( $autoblockip, $block ) {
575 return $this->container->run(
576 'AbortAutoblock',
577 [ $autoblockip, $block ]
578 );
579 }
580
581 public function onAbortDiffCache( $diffEngine ) {
582 return $this->container->run(
583 'AbortDiffCache',
584 [ $diffEngine ]
585 );
586 }
587
588 public function onAbortEmailNotification( $editor, $title, $rc ) {
589 return $this->container->run(
590 'AbortEmailNotification',
591 [ $editor, $title, $rc ]
592 );
593 }
594
595 public function onAbortTalkPageEmailNotification( $targetUser, $title ) {
596 return $this->container->run(
597 'AbortTalkPageEmailNotification',
598 [ $targetUser, $title ]
599 );
600 }
601
602 public function onActionBeforeFormDisplay( $name, $form, $article ) {
603 return $this->container->run(
604 'ActionBeforeFormDisplay',
605 [ $name, $form, $article ]
606 );
607 }
608
609 public function onActionModifyFormFields( $name, &$fields, $article ) {
610 return $this->container->run(
611 'ActionModifyFormFields',
612 [ $name, &$fields, $article ]
613 );
614 }
615
616 public function onAddNewAccount( $user, $byEmail ) {
617 return $this->container->run(
618 'AddNewAccount',
619 [ $user, $byEmail ]
620 );
621 }
622
623 public function onAfterBuildFeedLinks( &$feedLinks ) {
624 return $this->container->run(
625 'AfterBuildFeedLinks',
626 [ &$feedLinks ]
627 );
628 }
629
630 public function onAfterFinalPageOutput( $output ) : void {
631 $this->container->run(
632 'AfterFinalPageOutput',
633 [ $output ],
634 [ 'abortable' => false ]
635 );
636 }
637
638 public function onAfterImportPage( $title, $foreignTitle, $revCount,
639 $sRevCount, $pageInfo
640 ) {
641 return $this->container->run(
642 'AfterImportPage',
643 [ $title, $foreignTitle, $revCount, $sRevCount, $pageInfo ]
644 );
645 }
646
647 public function onAfterParserFetchFileAndTitle( $parser, $ig, &$html ) {
648 return $this->container->run(
649 'AfterParserFetchFileAndTitle',
650 [ $parser, $ig, &$html ]
651 );
652 }
653
654 public function onAlternateEdit( $editPage ) {
655 return $this->container->run(
656 'AlternateEdit',
657 [ $editPage ]
658 );
659 }
660
661 public function onAlternateEditPreview( $editPage, &$content, &$previewHTML,
662 &$parserOutput
663 ) {
664 return $this->container->run(
665 'AlternateEditPreview',
666 [ $editPage, &$content, &$previewHTML, &$parserOutput ]
667 );
668 }
669
670 public function onAlternateUserMailer( $headers, $to, $from, $subject, $body ) {
671 return $this->container->run(
672 'AlternateUserMailer',
673 [ $headers, $to, $from, $subject, $body ]
674 );
675 }
676
677 public function onAncientPagesQuery( &$tables, &$conds, &$joinConds ) {
678 return $this->container->run(
679 'AncientPagesQuery',
680 [ &$tables, &$conds, &$joinConds ]
681 );
682 }
683
684 public function onApiBeforeMain( &$main ) {
685 return $this->container->run(
686 'ApiBeforeMain',
687 [ &$main ]
688 );
689 }
690
691 public function onArticleConfirmDelete( $article, $output, &$reason ) {
692 return $this->container->run(
693 'ArticleConfirmDelete',
694 [ $article, $output, &$reason ]
695 );
696 }
697
698 public function onArticleContentOnDiff( $diffEngine, $output ) {
699 return $this->container->run(
700 'ArticleContentOnDiff',
701 [ $diffEngine, $output ]
702 );
703 }
704
705 public function onArticleDelete( $wikiPage, $user, &$reason, &$error, &$status,
706 $suppress
707 ) {
708 return $this->container->run(
709 'ArticleDelete',
710 [ $wikiPage, $user, &$reason, &$error, &$status, $suppress ]
711 );
712 }
713
714 public function onArticleDeleteAfterSuccess( $title, $outputPage ) {
715 return $this->container->run(
716 'ArticleDeleteAfterSuccess',
717 [ $title, $outputPage ]
718 );
719 }
720
721 public function onArticleDeleteComplete( $wikiPage, $user, $reason, $id,
722 $content, $logEntry, $archivedRevisionCount
723 ) {
724 return $this->container->run(
725 'ArticleDeleteComplete',
726 [ $wikiPage, $user, $reason, $id, $content, $logEntry,
727 $archivedRevisionCount ]
728 );
729 }
730
731 public function onArticleEditUpdateNewTalk( $wikiPage, $recipient ) {
732 return $this->container->run(
733 'ArticleEditUpdateNewTalk',
734 [ $wikiPage, $recipient ]
735 );
736 }
737
738 public function onArticleEditUpdates( $wikiPage, $editInfo, $changed ) {
739 return $this->container->run(
740 'ArticleEditUpdates',
741 [ $wikiPage, $editInfo, $changed ]
742 );
743 }
744
745 public function onArticleEditUpdatesDeleteFromRecentchanges( $wikiPage ) {
746 return $this->container->run(
747 'ArticleEditUpdatesDeleteFromRecentchanges',
748 [ $wikiPage ]
749 );
750 }
751
752 public function onArticleFromTitle( $title, &$article, $context ) {
753 return $this->container->run(
754 'ArticleFromTitle',
755 [ $title, &$article, $context ]
756 );
757 }
758
759 public function onArticleMergeComplete( $targetTitle, $destTitle ) {
760 return $this->container->run(
761 'ArticleMergeComplete',
762 [ $targetTitle, $destTitle ]
763 );
764 }
765
766 public function onArticlePageDataAfter( $wikiPage, &$row ) {
767 return $this->container->run(
768 'ArticlePageDataAfter',
769 [ $wikiPage, &$row ]
770 );
771 }
772
773 public function onArticlePageDataBefore( $wikiPage, &$fields, &$tables,
774 &$joinConds
775 ) {
776 return $this->container->run(
777 'ArticlePageDataBefore',
778 [ $wikiPage, &$fields, &$tables, &$joinConds ]
779 );
780 }
781
782 public function onArticlePrepareTextForEdit( $wikiPage, $popts ) {
783 return $this->container->run(
784 'ArticlePrepareTextForEdit',
785 [ $wikiPage, $popts ]
786 );
787 }
788
789 public function onArticleProtect( $wikiPage, $user, $protect, $reason ) {
790 return $this->container->run(
791 'ArticleProtect',
792 [ $wikiPage, $user, $protect, $reason ]
793 );
794 }
795
796 public function onArticleProtectComplete( $wikiPage, $user, $protect, $reason ) {
797 return $this->container->run(
798 'ArticleProtectComplete',
799 [ $wikiPage, $user, $protect, $reason ]
800 );
801 }
802
803 public function onArticlePurge( $wikiPage ) {
804 return $this->container->run(
805 'ArticlePurge',
806 [ $wikiPage ]
807 );
808 }
809
810 public function onArticleRevisionUndeleted( $title, $revision, $oldPageID ) {
811 return $this->container->run(
812 'ArticleRevisionUndeleted',
813 [ $title, $revision, $oldPageID ]
814 );
815 }
816
817 public function onArticleRevisionViewCustom( $revision, $title, $oldid,
818 $output
819 ) {
820 return $this->container->run(
821 'ArticleRevisionViewCustom',
822 [ $revision, $title, $oldid, $output ]
823 );
824 }
825
827 $visibilityChangeMap
828 ) {
829 return $this->container->run(
830 'ArticleRevisionVisibilitySet',
831 [ $title, $ids, $visibilityChangeMap ]
832 );
833 }
834
835 public function onArticleRollbackComplete( $wikiPage, $user, $revision,
836 $current
837 ) {
838 return $this->container->run(
839 'ArticleRollbackComplete',
840 [ $wikiPage, $user, $revision, $current ]
841 );
842 }
843
844 public function onArticleShowPatrolFooter( $article ) {
845 return $this->container->run(
846 'ArticleShowPatrolFooter',
847 [ $article ]
848 );
849 }
850
851 public function onArticleUndelete( $title, $create, $comment, $oldPageId,
852 $restoredPages
853 ) {
854 return $this->container->run(
855 'ArticleUndelete',
856 [ $title, $create, $comment, $oldPageId, $restoredPages ]
857 );
858 }
859
860 public function onArticleUndeleteLogEntry( $pageArchive, &$logEntry, $user ) {
861 return $this->container->run(
862 'ArticleUndeleteLogEntry',
863 [ $pageArchive, &$logEntry, $user ]
864 );
865 }
866
867 public function onArticleUpdateBeforeRedirect( $article, &$sectionanchor,
868 &$extraq
869 ) {
870 return $this->container->run(
871 'ArticleUpdateBeforeRedirect',
872 [ $article, &$sectionanchor, &$extraq ]
873 );
874 }
875
876 public function onArticleViewFooter( $article, $patrolFooterShown ) {
877 return $this->container->run(
878 'ArticleViewFooter',
879 [ $article, $patrolFooterShown ]
880 );
881 }
882
883 public function onArticleViewHeader( $article, &$pcache, &$outputDone ) {
884 return $this->container->run(
885 'ArticleViewHeader',
886 [ $article, &$pcache, &$outputDone ]
887 );
888 }
889
890 public function onArticleViewRedirect( $article ) {
891 return $this->container->run(
892 'ArticleViewRedirect',
893 [ $article ]
894 );
895 }
896
897 public function onArticle__MissingArticleConditions( &$conds, $logTypes ) {
898 return $this->container->run(
899 'Article::MissingArticleConditions',
900 [ &$conds, $logTypes ]
901 );
902 }
903
904 public function onAuthChangeFormFields( $requests, $fieldInfo,
905 &$formDescriptor, $action
906 ) {
907 return $this->container->run(
908 'AuthChangeFormFields',
909 [ $requests, $fieldInfo, &$formDescriptor, $action ]
910 );
911 }
912
913 public function onAuthManagerLoginAuthenticateAudit( $response, $user,
914 $username, $extraData
915 ) {
916 return $this->container->run(
917 'AuthManagerLoginAuthenticateAudit',
918 [ $response, $user, $username, $extraData ]
919 );
920 }
921
922 public function onAutopromoteCondition( $type, $args, $user, &$result ) {
923 return $this->container->run(
924 'AutopromoteCondition',
925 [ $type, $args, $user, &$result ]
926 );
927 }
928
929 public function onBacklinkCacheGetConditions( $table, $title, &$conds ) {
930 return $this->container->run(
931 'BacklinkCacheGetConditions',
932 [ $table, $title, &$conds ]
933 );
934 }
935
936 public function onBacklinkCacheGetPrefix( $table, &$prefix ) {
937 return $this->container->run(
938 'BacklinkCacheGetPrefix',
939 [ $table, &$prefix ]
940 );
941 }
942
943 public function onBadImage( $name, &$bad ) {
944 return $this->container->run(
945 'BadImage',
946 [ $name, &$bad ]
947 );
948 }
949
950 public function onBaseTemplateAfterPortlet( $template, $portlet, &$html ) {
951 return $this->container->run(
952 'BaseTemplateAfterPortlet',
953 [ $template, $portlet, &$html ]
954 );
955 }
956
957 public function onBaseTemplateToolbox( $sk, &$toolbox ) {
958 return $this->container->run(
959 'BaseTemplateToolbox',
960 [ $sk, &$toolbox ]
961 );
962 }
963
964 public function onBeforeDisplayNoArticleText( $article ) {
965 return $this->container->run(
966 'BeforeDisplayNoArticleText',
967 [ $article ]
968 );
969 }
970
971 public function onBeforeHttpsRedirect( $context, &$redirect ) {
972 return $this->container->run(
973 'BeforeHttpsRedirect',
974 [ $context, &$redirect ]
975 );
976 }
977
978 public function onBeforeInitialize( $title, $unused, $output, $user, $request,
979 $mediaWiki
980 ) {
981 return $this->container->run(
982 'BeforeInitialize',
983 [ $title, $unused, $output, $user, $request, $mediaWiki ]
984 );
985 }
986
987 public function onBeforePageDisplay( $out, $skin ) : void {
988 $this->container->run(
989 'BeforePageDisplay',
990 [ $out, $skin ],
991 [ 'abortable' => false ]
992 );
993 }
994
995 public function onBeforePageRedirect( $out, &$redirect, &$code ) {
996 return $this->container->run(
997 'BeforePageRedirect',
998 [ $out, &$redirect, &$code ]
999 );
1000 }
1001
1002 public function onBeforeParserFetchFileAndTitle( $parser, $nt, &$options,
1003 &$descQuery
1004 ) {
1005 return $this->container->run(
1006 'BeforeParserFetchFileAndTitle',
1007 [ $parser, $nt, &$options, &$descQuery ]
1008 );
1009 }
1010
1011 public function onBeforeParserFetchTemplateAndtitle( $parser, $title, &$skip,
1012 &$id
1013 ) {
1014 return $this->container->run(
1015 'BeforeParserFetchTemplateAndtitle',
1016 [ $parser, $title, &$skip, &$id ]
1017 );
1018 }
1019
1020 public function onBeforeParserrenderImageGallery( $parser, $ig ) {
1021 return $this->container->run(
1022 'BeforeParserrenderImageGallery',
1023 [ $parser, $ig ]
1024 );
1025 }
1026
1027 public function onBeforeResetNotificationTimestamp( &$userObj, &$titleObj,
1028 $force, &$oldid
1029 ) {
1030 return $this->container->run(
1031 'BeforeResetNotificationTimestamp',
1032 [ &$userObj, &$titleObj, $force, &$oldid ]
1033 );
1034 }
1035
1036 public function onBeforeWelcomeCreation( &$welcome_creation_msg,
1037 &$injected_html
1038 ) {
1039 return $this->container->run(
1040 'BeforeWelcomeCreation',
1041 [ &$welcome_creation_msg, &$injected_html ]
1042 );
1043 }
1044
1045 public function onBitmapHandlerCheckImageArea( $image, &$params,
1046 &$checkImageAreaHookResult
1047 ) {
1048 return $this->container->run(
1049 'BitmapHandlerCheckImageArea',
1050 [ $image, &$params, &$checkImageAreaHookResult ]
1051 );
1052 }
1053
1054 public function onBitmapHandlerTransform( $handler, $image, &$scalerParams,
1055 &$mto
1056 ) {
1057 return $this->container->run(
1058 'BitmapHandlerTransform',
1059 [ $handler, $image, &$scalerParams, &$mto ]
1060 );
1061 }
1062
1063 public function onBlockIp( $block, $user, &$reason ) {
1064 return $this->container->run(
1065 'BlockIp',
1066 [ $block, $user, &$reason ]
1067 );
1068 }
1069
1070 public function onBlockIpComplete( $block, $user, $priorBlock ) {
1071 return $this->container->run(
1072 'BlockIpComplete',
1073 [ $block, $user, $priorBlock ]
1074 );
1075 }
1076
1077 public function onBookInformation( $isbn, $output ) {
1078 return $this->container->run(
1079 'BookInformation',
1080 [ $isbn, $output ]
1081 );
1082 }
1083
1084 public function onCanIPUseHTTPS( $ip, &$canDo ) {
1085 return $this->container->run(
1086 'CanIPUseHTTPS',
1087 [ $ip, &$canDo ]
1088 );
1089 }
1090
1091 public function onCanonicalNamespaces( &$namespaces ) {
1092 return $this->container->run(
1093 'CanonicalNamespaces',
1094 [ &$namespaces ]
1095 );
1096 }
1097
1098 public function onCategoryAfterPageAdded( $category, $wikiPage ) {
1099 return $this->container->run(
1100 'CategoryAfterPageAdded',
1101 [ $category, $wikiPage ]
1102 );
1103 }
1104
1105 public function onCategoryAfterPageRemoved( $category, $wikiPage, $id ) {
1106 return $this->container->run(
1107 'CategoryAfterPageRemoved',
1108 [ $category, $wikiPage, $id ]
1109 );
1110 }
1111
1112 public function onCategoryPageView( $catpage ) {
1113 return $this->container->run(
1114 'CategoryPageView',
1115 [ $catpage ]
1116 );
1117 }
1118
1120 return $this->container->run(
1121 'CategoryViewer::doCategoryQuery',
1122 [ $type, $res ]
1123 );
1124 }
1125
1126 public function onCategoryViewer__generateLink( $type, $title, $html, &$link ) {
1127 return $this->container->run(
1128 'CategoryViewer::generateLink',
1129 [ $type, $title, $html, &$link ]
1130 );
1131 }
1132
1133 public function onChangeAuthenticationDataAudit( $req, $status ) {
1134 return $this->container->run(
1135 'ChangeAuthenticationDataAudit',
1136 [ $req, $status ]
1137 );
1138 }
1139
1140 public function onChangesListInitRows( $changesList, $rows ) {
1141 return $this->container->run(
1142 'ChangesListInitRows',
1143 [ $changesList, $rows ]
1144 );
1145 }
1146
1147 public function onChangesListInsertArticleLink( $changesList, &$articlelink,
1148 &$s, $rc, $unpatrolled, $watched
1149 ) {
1150 return $this->container->run(
1151 'ChangesListInsertArticleLink',
1152 [ $changesList, &$articlelink, &$s, $rc, $unpatrolled, $watched ]
1153 );
1154 }
1155
1156 public function onChangesListSpecialPageQuery( $name, &$tables, &$fields,
1157 &$conds, &$query_options, &$join_conds, $opts
1158 ) {
1159 return $this->container->run(
1160 'ChangesListSpecialPageQuery',
1161 [ $name, &$tables, &$fields, &$conds, &$query_options,
1162 &$join_conds, $opts ]
1163 );
1164 }
1165
1166 public function onChangesListSpecialPageStructuredFilters( $special ) {
1167 return $this->container->run(
1168 'ChangesListSpecialPageStructuredFilters',
1169 [ $special ]
1170 );
1171 }
1172
1173 public function onChangeTagAfterDelete( $tag, &$status ) {
1174 return $this->container->run(
1175 'ChangeTagAfterDelete',
1176 [ $tag, &$status ]
1177 );
1178 }
1179
1180 public function onChangeTagCanCreate( $tag, $user, &$status ) {
1181 return $this->container->run(
1182 'ChangeTagCanCreate',
1183 [ $tag, $user, &$status ]
1184 );
1185 }
1186
1187 public function onChangeTagCanDelete( $tag, $user, &$status ) {
1188 return $this->container->run(
1189 'ChangeTagCanDelete',
1190 [ $tag, $user, &$status ]
1191 );
1192 }
1193
1194 public function onChangeTagsAfterUpdateTags( $addedTags, $removedTags,
1195 $prevTags, $rc_id, $rev_id, $log_id, $params, $rc, $user
1196 ) {
1197 return $this->container->run(
1198 'ChangeTagsAfterUpdateTags',
1199 [ $addedTags, $removedTags, $prevTags, $rc_id, $rev_id, $log_id,
1200 $params, $rc, $user ]
1201 );
1202 }
1203
1204 public function onChangeTagsAllowedAdd( &$allowedTags, $addTags, $user ) {
1205 return $this->container->run(
1206 'ChangeTagsAllowedAdd',
1207 [ &$allowedTags, $addTags, $user ]
1208 );
1209 }
1210
1211 public function onChangeTagsListActive( &$tags ) {
1212 return $this->container->run(
1213 'ChangeTagsListActive',
1214 [ &$tags ]
1215 );
1216 }
1217
1218 public function onChangeUserGroups( $performer, $user, &$add, &$remove ) {
1219 return $this->container->run(
1220 'ChangeUserGroups',
1221 [ $performer, $user, &$add, &$remove ]
1222 );
1223 }
1224
1225 public function onCollation__factory( $collationName, &$collationObject ) {
1226 return $this->container->run(
1227 'Collation::factory',
1228 [ $collationName, &$collationObject ]
1229 );
1230 }
1231
1232 public function onConfirmEmailComplete( $user ) {
1233 return $this->container->run(
1234 'ConfirmEmailComplete',
1235 [ $user ]
1236 );
1237 }
1238
1239 public function onContentAlterParserOutput( $content, $title, $parserOutput ) {
1240 return $this->container->run(
1241 'ContentAlterParserOutput',
1242 [ $content, $title, $parserOutput ]
1243 );
1244 }
1245
1246 public function onContentGetParserOutput( $content, $title, $revId, $options,
1247 $generateHtml, &$output
1248 ) {
1249 return $this->container->run(
1250 'ContentGetParserOutput',
1251 [ $content, $title, $revId, $options, $generateHtml, &$output ]
1252 );
1253 }
1254
1255 public function onContentHandlerDefaultModelFor( $title, &$model ) {
1256 return $this->container->run(
1257 'ContentHandlerDefaultModelFor',
1258 [ $title, &$model ]
1259 );
1260 }
1261
1262 public function onContentHandlerForModelID( $modeName, &$handler ) {
1263 return $this->container->run(
1264 'ContentHandlerForModelID',
1265 [ $modeName, &$handler ]
1266 );
1267 }
1268
1269 public function onContentModelCanBeUsedOn( $contentModel, $title, &$ok ) {
1270 return $this->container->run(
1271 'ContentModelCanBeUsedOn',
1272 [ $contentModel, $title, &$ok ]
1273 );
1274 }
1275
1276 public function onContentSecurityPolicyDefaultSource( &$defaultSrc,
1277 $policyConfig, $mode
1278 ) {
1279 return $this->container->run(
1280 'ContentSecurityPolicyDefaultSource',
1281 [ &$defaultSrc, $policyConfig, $mode ]
1282 );
1283 }
1284
1285 public function onContentSecurityPolicyDirectives( &$directives, $policyConfig,
1286 $mode
1287 ) {
1288 return $this->container->run(
1289 'ContentSecurityPolicyDirectives',
1290 [ &$directives, $policyConfig, $mode ]
1291 );
1292 }
1293
1294 public function onContentSecurityPolicyScriptSource( &$scriptSrc,
1295 $policyConfig, $mode
1296 ) {
1297 return $this->container->run(
1298 'ContentSecurityPolicyScriptSource',
1299 [ &$scriptSrc, $policyConfig, $mode ]
1300 );
1301 }
1302
1303 public function onContribsPager__getQueryInfo( $pager, &$queryInfo ) {
1304 return $this->container->run(
1305 'ContribsPager::getQueryInfo',
1306 [ $pager, &$queryInfo ]
1307 );
1308 }
1309
1310 public function onContribsPager__reallyDoQuery( &$data, $pager, $offset,
1311 $limit, $descending
1312 ) {
1313 return $this->container->run(
1314 'ContribsPager::reallyDoQuery',
1315 [ &$data, $pager, $offset, $limit, $descending ]
1316 );
1317 }
1318
1319 public function onContributionsLineEnding( $page, &$ret, $row, &$classes,
1320 &$attribs
1321 ) {
1322 return $this->container->run(
1323 'ContributionsLineEnding',
1324 [ $page, &$ret, $row, &$classes, &$attribs ]
1325 );
1326 }
1327
1328 public function onContributionsToolLinks( $id, $title, &$tools, $specialPage ) {
1329 return $this->container->run(
1330 'ContributionsToolLinks',
1331 [ $id, $title, &$tools, $specialPage ]
1332 );
1333 }
1334
1335 public function onConvertContent( $content, $toModel, $lossy, &$result ) {
1336 return $this->container->run(
1337 'ConvertContent',
1338 [ $content, $toModel, $lossy, &$result ]
1339 );
1340 }
1341
1342 public function onCustomEditor( $article, $user ) {
1343 return $this->container->run(
1344 'CustomEditor',
1345 [ $article, $user ]
1346 );
1347 }
1348
1349 public function onDeletedContribsPager__reallyDoQuery( &$data, $pager, $offset,
1350 $limit, $descending
1351 ) {
1352 return $this->container->run(
1353 'DeletedContribsPager::reallyDoQuery',
1354 [ &$data, $pager, $offset, $limit, $descending ]
1355 );
1356 }
1357
1358 public function onDeletedContributionsLineEnding( $page, &$ret, $row,
1359 &$classes, &$attribs
1360 ) {
1361 return $this->container->run(
1362 'DeletedContributionsLineEnding',
1363 [ $page, &$ret, $row, &$classes, &$attribs ]
1364 );
1365 }
1366
1367 public function onDeleteUnknownPreferences( &$where, $db ) {
1368 return $this->container->run(
1369 'DeleteUnknownPreferences',
1370 [ &$where, $db ]
1371 );
1372 }
1373
1374 public function onDifferenceEngineAfterLoadNewText( $differenceEngine ) {
1375 return $this->container->run(
1376 'DifferenceEngineAfterLoadNewText',
1377 [ $differenceEngine ]
1378 );
1379 }
1380
1382 $differenceEngine
1383 ) {
1384 return $this->container->run(
1385 'DifferenceEngineLoadTextAfterNewContentIsLoaded',
1386 [ $differenceEngine ]
1387 );
1388 }
1389
1390 public function onDifferenceEngineMarkPatrolledLink( $differenceEngine,
1391 &$markAsPatrolledLink, $rcid
1392 ) {
1393 return $this->container->run(
1394 'DifferenceEngineMarkPatrolledLink',
1395 [ $differenceEngine, &$markAsPatrolledLink, $rcid ]
1396 );
1397 }
1398
1399 public function onDifferenceEngineMarkPatrolledRCID( &$rcid, $differenceEngine,
1400 $change, $user
1401 ) {
1402 return $this->container->run(
1403 'DifferenceEngineMarkPatrolledRCID',
1404 [ &$rcid, $differenceEngine, $change, $user ]
1405 );
1406 }
1407
1408 public function onDifferenceEngineNewHeader( $differenceEngine, &$newHeader,
1409 $formattedRevisionTools, $nextlink, $rollback, $newminor, $diffOnly, $rdel,
1410 $unhide
1411 ) {
1412 return $this->container->run(
1413 'DifferenceEngineNewHeader',
1414 [ $differenceEngine, &$newHeader, $formattedRevisionTools,
1415 $nextlink, $rollback, $newminor, $diffOnly, $rdel, $unhide ]
1416 );
1417 }
1418
1419 public function onDifferenceEngineOldHeader( $differenceEngine, &$oldHeader,
1420 $prevlink, $oldminor, $diffOnly, $ldel, $unhide
1421 ) {
1422 return $this->container->run(
1423 'DifferenceEngineOldHeader',
1424 [ $differenceEngine, &$oldHeader, $prevlink, $oldminor, $diffOnly,
1425 $ldel, $unhide ]
1426 );
1427 }
1428
1429 public function onDifferenceEngineOldHeaderNoOldRev( &$oldHeader ) {
1430 return $this->container->run(
1431 'DifferenceEngineOldHeaderNoOldRev',
1432 [ &$oldHeader ]
1433 );
1434 }
1435
1437 $differenceEngine, $out, $parserOutput, $wikiPage
1438 ) {
1439 return $this->container->run(
1440 'DifferenceEngineRenderRevisionAddParserOutput',
1441 [ $differenceEngine, $out, $parserOutput, $wikiPage ]
1442 );
1443 }
1444
1446 return $this->container->run(
1447 'DifferenceEngineRenderRevisionShowFinalPatrolLink',
1448 []
1449 );
1450 }
1451
1452 public function onDifferenceEngineShowDiff( $differenceEngine ) {
1453 return $this->container->run(
1454 'DifferenceEngineShowDiff',
1455 [ $differenceEngine ]
1456 );
1457 }
1458
1459 public function onDifferenceEngineShowDiffPage( $out ) {
1460 return $this->container->run(
1461 'DifferenceEngineShowDiffPage',
1462 [ $out ]
1463 );
1464 }
1465
1467 $differenceEngine
1468 ) {
1469 return $this->container->run(
1470 'DifferenceEngineShowDiffPageMaybeShowMissingRevision',
1471 [ $differenceEngine ]
1472 );
1473 }
1474
1475 public function onDifferenceEngineShowEmptyOldContent( $differenceEngine ) {
1476 return $this->container->run(
1477 'DifferenceEngineShowEmptyOldContent',
1478 [ $differenceEngine ]
1479 );
1480 }
1481
1482 public function onDifferenceEngineViewHeader( $differenceEngine ) {
1483 return $this->container->run(
1484 'DifferenceEngineViewHeader',
1485 [ $differenceEngine ]
1486 );
1487 }
1488
1489 public function onDiffRevisionTools( $newRev, &$links, $oldRev, $user ) {
1490 return $this->container->run(
1491 'DiffRevisionTools',
1492 [ $newRev, &$links, $oldRev, $user ]
1493 );
1494 }
1495
1496 public function onDiffTools( $newRevRecord, &$links, $oldRevRecord, $userIdentity ) {
1497 return $this->container->run(
1498 'DiffTools',
1499 [ $newRevRecord, &$links, $oldRevRecord, $userIdentity ]
1500 );
1501 }
1502
1503 public function onDiffViewHeader( $diff, $oldRev, $newRev ) {
1504 return $this->container->run(
1505 'DiffViewHeader',
1506 [ $diff, $oldRev, $newRev ]
1507 );
1508 }
1509
1510 public function onDisplayOldSubtitle( $article, &$oldid ) {
1511 return $this->container->run(
1512 'DisplayOldSubtitle',
1513 [ $article, &$oldid ]
1514 );
1515 }
1516
1517 public function onEditFilter( $editor, $text, $section, &$error, $summary ) {
1518 return $this->container->run(
1519 'EditFilter',
1520 [ $editor, $text, $section, &$error, $summary ]
1521 );
1522 }
1523
1524 public function onEditFilterMergedContent( $context, $content, $status,
1525 $summary, $user, $minoredit
1526 ) {
1527 return $this->container->run(
1528 'EditFilterMergedContent',
1529 [ $context, $content, $status, $summary, $user, $minoredit ]
1530 );
1531 }
1532
1533 public function onEditFormInitialText( $editPage ) {
1534 return $this->container->run(
1535 'EditFormInitialText',
1536 [ $editPage ]
1537 );
1538 }
1539
1540 public function onEditFormPreloadText( &$text, $title ) {
1541 return $this->container->run(
1542 'EditFormPreloadText',
1543 [ &$text, $title ]
1544 );
1545 }
1546
1547 public function onEditPageBeforeConflictDiff( $editor, $out ) {
1548 return $this->container->run(
1549 'EditPageBeforeConflictDiff',
1550 [ $editor, $out ]
1551 );
1552 }
1553
1554 public function onEditPageBeforeEditButtons( $editpage, &$buttons, &$tabindex ) {
1555 return $this->container->run(
1556 'EditPageBeforeEditButtons',
1557 [ $editpage, &$buttons, &$tabindex ]
1558 );
1559 }
1560
1561 public function onEditPageBeforeEditToolbar( &$toolbar ) {
1562 return $this->container->run(
1563 'EditPageBeforeEditToolbar',
1564 [ &$toolbar ]
1565 );
1566 }
1567
1568 public function onEditPageCopyrightWarning( $title, &$msg ) {
1569 return $this->container->run(
1570 'EditPageCopyrightWarning',
1571 [ $title, &$msg ]
1572 );
1573 }
1574
1575 public function onEditPageGetCheckboxesDefinition( $editpage, &$checkboxes ) {
1576 return $this->container->run(
1577 'EditPageGetCheckboxesDefinition',
1578 [ $editpage, &$checkboxes ]
1579 );
1580 }
1581
1582 public function onEditPageGetDiffContent( $editPage, &$newtext ) {
1583 return $this->container->run(
1584 'EditPageGetDiffContent',
1585 [ $editPage, &$newtext ]
1586 );
1587 }
1588
1589 public function onEditPageGetPreviewContent( $editPage, &$content ) {
1590 return $this->container->run(
1591 'EditPageGetPreviewContent',
1592 [ $editPage, &$content ]
1593 );
1594 }
1595
1596 public function onEditPageNoSuchSection( $editpage, &$res ) {
1597 return $this->container->run(
1598 'EditPageNoSuchSection',
1599 [ $editpage, &$res ]
1600 );
1601 }
1602
1603 public function onEditPageTosSummary( $title, &$msg ) {
1604 return $this->container->run(
1605 'EditPageTosSummary',
1606 [ $title, &$msg ]
1607 );
1608 }
1609
1610 public function onEditPage__attemptSave( $editpage_Obj ) {
1611 return $this->container->run(
1612 'EditPage::attemptSave',
1613 [ $editpage_Obj ]
1614 );
1615 }
1616
1617 public function onEditPage__attemptSave_after( $editpage_Obj, $status,
1618 $resultDetails
1619 ) {
1620 return $this->container->run(
1621 'EditPage::attemptSave:after',
1622 [ $editpage_Obj, $status, $resultDetails ]
1623 );
1624 }
1625
1626 public function onEditPage__importFormData( $editpage, $request ) {
1627 return $this->container->run(
1628 'EditPage::importFormData',
1629 [ $editpage, $request ]
1630 );
1631 }
1632
1633 public function onEditPage__showEditForm_fields( $editor, $out ) {
1634 return $this->container->run(
1635 'EditPage::showEditForm:fields',
1636 [ $editor, $out ]
1637 );
1638 }
1639
1640 public function onEditPage__showEditForm_initial( $editor, $out ) {
1641 return $this->container->run(
1642 'EditPage::showEditForm:initial',
1643 [ $editor, $out ]
1644 );
1645 }
1646
1647 public function onEditPage__showReadOnlyForm_initial( $editor, $out ) {
1648 return $this->container->run(
1649 'EditPage::showReadOnlyForm:initial',
1650 [ $editor, $out ]
1651 );
1652 }
1653
1654 public function onEditPage__showStandardInputs_options( $editor, $out,
1655 &$tabindex
1656 ) {
1657 return $this->container->run(
1658 'EditPage::showStandardInputs:options',
1659 [ $editor, $out, &$tabindex ]
1660 );
1661 }
1662
1663 public function onEmailConfirmed( $user, &$confirmed ) {
1664 return $this->container->run(
1665 'EmailConfirmed',
1666 [ $user, &$confirmed ]
1667 );
1668 }
1669
1670 public function onEmailUser( &$to, &$from, &$subject, &$text, &$error ) {
1671 return $this->container->run(
1672 'EmailUser',
1673 [ &$to, &$from, &$subject, &$text, &$error ]
1674 );
1675 }
1676
1677 public function onEmailUserCC( &$to, &$from, &$subject, &$text ) {
1678 return $this->container->run(
1679 'EmailUserCC',
1680 [ &$to, &$from, &$subject, &$text ]
1681 );
1682 }
1683
1684 public function onEmailUserComplete( $to, $from, $subject, $text ) {
1685 return $this->container->run(
1686 'EmailUserComplete',
1687 [ $to, $from, $subject, $text ]
1688 );
1689 }
1690
1691 public function onEmailUserForm( &$form ) {
1692 return $this->container->run(
1693 'EmailUserForm',
1694 [ &$form ]
1695 );
1696 }
1697
1698 public function onEmailUserPermissionsErrors( $user, $editToken, &$hookErr ) {
1699 return $this->container->run(
1700 'EmailUserPermissionsErrors',
1701 [ $user, $editToken, &$hookErr ]
1702 );
1703 }
1704
1705 public function onEnhancedChangesListModifyBlockLineData( $changesList, &$data,
1706 $rc
1707 ) {
1708 return $this->container->run(
1709 'EnhancedChangesListModifyBlockLineData',
1710 [ $changesList, &$data, $rc ]
1711 );
1712 }
1713
1714 public function onEnhancedChangesListModifyLineData( $changesList, &$data,
1715 $block, $rc, &$classes, &$attribs
1716 ) {
1717 return $this->container->run(
1718 'EnhancedChangesListModifyLineData',
1719 [ $changesList, &$data, $block, $rc, &$classes, &$attribs ]
1720 );
1721 }
1722
1723 public function onEnhancedChangesList__getLogText( $changesList, &$links,
1724 $block
1725 ) {
1726 return $this->container->run(
1727 'EnhancedChangesList::getLogText',
1728 [ $changesList, &$links, $block ]
1729 );
1730 }
1731
1733 return $this->container->run(
1734 'ExemptFromAccountCreationThrottle',
1735 [ $ip ]
1736 );
1737 }
1738
1739 public function onExtensionTypes( &$extTypes ) {
1740 return $this->container->run(
1741 'ExtensionTypes',
1742 [ &$extTypes ]
1743 );
1744 }
1745
1746 public function onFetchChangesList( $user, $skin, &$list, $groups ) {
1747 return $this->container->run(
1748 'FetchChangesList',
1749 [ $user, $skin, &$list, $groups ]
1750 );
1751 }
1752
1753 public function onFileDeleteComplete( $file, $oldimage, $article, $user,
1754 $reason
1755 ) {
1756 return $this->container->run(
1757 'FileDeleteComplete',
1758 [ $file, $oldimage, $article, $user, $reason ]
1759 );
1760 }
1761
1762 public function onFileTransformed( $file, $thumb, $tmpThumbPath, $thumbPath ) {
1763 return $this->container->run(
1764 'FileTransformed',
1765 [ $file, $thumb, $tmpThumbPath, $thumbPath ]
1766 );
1767 }
1768
1769 public function onFileUndeleteComplete( $title, $fileVersions, $user, $reason ) {
1770 return $this->container->run(
1771 'FileUndeleteComplete',
1772 [ $title, $fileVersions, $user, $reason ]
1773 );
1774 }
1775
1776 public function onFileUpload( $file, $reupload, $hasDescription ) {
1777 return $this->container->run(
1778 'FileUpload',
1779 [ $file, $reupload, $hasDescription ]
1780 );
1781 }
1782
1783 public function onFormatAutocomments( &$comment, $pre, $auto, $post, $title,
1784 $local, $wikiId
1785 ) {
1786 return $this->container->run(
1787 'FormatAutocomments',
1788 [ &$comment, $pre, $auto, $post, $title, $local, $wikiId ]
1789 );
1790 }
1791
1792 public function onGalleryGetModes( &$modeArray ) {
1793 return $this->container->run(
1794 'GalleryGetModes',
1795 [ &$modeArray ]
1796 );
1797 }
1798
1799 public function onGetAutoPromoteGroups( $user, &$promote ) {
1800 return $this->container->run(
1801 'GetAutoPromoteGroups',
1802 [ $user, &$promote ]
1803 );
1804 }
1805
1806 public function onGetCacheVaryCookies( $out, &$cookies ) {
1807 return $this->container->run(
1808 'GetCacheVaryCookies',
1809 [ $out, &$cookies ]
1810 );
1811 }
1812
1813 public function onGetCanonicalURL( $title, &$url, $query ) {
1814 return $this->container->run(
1815 'GetCanonicalURL',
1816 [ $title, &$url, $query ]
1817 );
1818 }
1819
1820 public function onGetContentModels( &$models ) {
1821 return $this->container->run(
1822 'GetContentModels',
1823 [ &$models ]
1824 );
1825 }
1826
1827 public function onGetDefaultSortkey( $title, &$sortkey ) {
1828 return $this->container->run(
1829 'GetDefaultSortkey',
1830 [ $title, &$sortkey ]
1831 );
1832 }
1833
1834 public function onGetDifferenceEngine( $context, $old, $new, $refreshCache,
1835 $unhide, &$differenceEngine
1836 ) {
1837 return $this->container->run(
1838 'GetDifferenceEngine',
1839 [ $context, $old, $new, $refreshCache, $unhide,
1840 &$differenceEngine ]
1841 );
1842 }
1843
1844 public function onGetDoubleUnderscoreIDs( &$doubleUnderscoreIDs ) {
1845 return $this->container->run(
1846 'GetDoubleUnderscoreIDs',
1847 [ &$doubleUnderscoreIDs ]
1848 );
1849 }
1850
1851 public function onGetExtendedMetadata( &$combinedMeta, $file, $context,
1852 $single, &$maxCacheTime
1853 ) {
1854 return $this->container->run(
1855 'GetExtendedMetadata',
1856 [ &$combinedMeta, $file, $context, $single, &$maxCacheTime ]
1857 );
1858 }
1859
1860 public function onGetFullURL( $title, &$url, $query ) {
1861 return $this->container->run(
1862 'GetFullURL',
1863 [ $title, &$url, $query ]
1864 );
1865 }
1866
1867 public function onGetHumanTimestamp( &$output, $timestamp, $relativeTo, $user,
1868 $lang
1869 ) {
1870 return $this->container->run(
1871 'GetHumanTimestamp',
1872 [ &$output, $timestamp, $relativeTo, $user, $lang ]
1873 );
1874 }
1875
1876 public function onGetInternalURL( $title, &$url, $query ) {
1877 return $this->container->run(
1878 'GetInternalURL',
1879 [ $title, &$url, $query ]
1880 );
1881 }
1882
1883 public function onGetIP( &$ip ) {
1884 return $this->container->run(
1885 'GetIP',
1886 [ &$ip ]
1887 );
1888 }
1889
1890 public function onGetLangPreferredVariant( &$req ) {
1891 return $this->container->run(
1892 'GetLangPreferredVariant',
1893 [ &$req ]
1894 );
1895 }
1896
1897 public function onGetLinkColours( $linkcolour_ids, &$colours, $title ) {
1898 return $this->container->run(
1899 'GetLinkColours',
1900 [ $linkcolour_ids, &$colours, $title ]
1901 );
1902 }
1903
1904 public function onGetLocalURL( $title, &$url, $query ) {
1905 return $this->container->run(
1906 'GetLocalURL',
1907 [ $title, &$url, $query ]
1908 );
1909 }
1910
1911 public function onGetLocalURL__Article( $title, &$url ) {
1912 return $this->container->run(
1913 'GetLocalURL::Article',
1914 [ $title, &$url ]
1915 );
1916 }
1917
1918 public function onGetLocalURL__Internal( $title, &$url, $query ) {
1919 return $this->container->run(
1920 'GetLocalURL::Internal',
1921 [ $title, &$url, $query ]
1922 );
1923 }
1924
1925 public function onGetLogTypesOnUser( &$types ) {
1926 return $this->container->run(
1927 'GetLogTypesOnUser',
1928 [ &$types ]
1929 );
1930 }
1931
1932 public function onGetMagicVariableIDs( &$variableIDs ) {
1933 return $this->container->run(
1934 'GetMagicVariableIDs',
1935 [ &$variableIDs ]
1936 );
1937 }
1938
1939 public function onGetMetadataVersion( &$version ) {
1940 return $this->container->run(
1941 'GetMetadataVersion',
1942 [ &$version ]
1943 );
1944 }
1945
1946 public function onGetNewMessagesAlert( &$newMessagesAlert, $newtalks, $user,
1947 $out
1948 ) {
1949 return $this->container->run(
1950 'GetNewMessagesAlert',
1951 [ &$newMessagesAlert, $newtalks, $user, $out ]
1952 );
1953 }
1954
1955 public function onGetPreferences( $user, &$preferences ) {
1956 return $this->container->run(
1957 'GetPreferences',
1958 [ $user, &$preferences ]
1959 );
1960 }
1961
1962 public function onGetRelativeTimestamp( &$output, &$diff, $timestamp,
1963 $relativeTo, $user, $lang
1964 ) {
1965 return $this->container->run(
1966 'GetRelativeTimestamp',
1967 [ &$output, &$diff, $timestamp, $relativeTo, $user, $lang ]
1968 );
1969 }
1970
1971 public function onGetSlotDiffRenderer( $contentHandler, &$slotDiffRenderer,
1972 $context
1973 ) {
1974 return $this->container->run(
1975 'GetSlotDiffRenderer',
1976 [ $contentHandler, &$slotDiffRenderer, $context ]
1977 );
1978 }
1979
1980 public function onGetUserBlock( $user, $ip, &$block ) {
1981 return $this->container->run(
1982 'GetUserBlock',
1983 [ $user, $ip, &$block ]
1984 );
1985 }
1986
1987 public function onGetUserPermissionsErrors( $title, $user, $action, &$result ) {
1988 return $this->container->run(
1989 'getUserPermissionsErrors',
1990 [ $title, $user, $action, &$result ]
1991 );
1992 }
1993
1994 public function onGetUserPermissionsErrorsExpensive( $title, $user, $action,
1995 &$result
1996 ) {
1997 return $this->container->run(
1998 'getUserPermissionsErrorsExpensive',
1999 [ $title, $user, $action, &$result ]
2000 );
2001 }
2002
2003 public function onGitViewers( &$extTypes ) {
2004 return $this->container->run(
2005 'GitViewers',
2006 [ &$extTypes ]
2007 );
2008 }
2009
2010 public function onHistoryPageToolLinks( $context, $linkRenderer, &$links ) {
2011 return $this->container->run(
2012 'HistoryPageToolLinks',
2013 [ $context, $linkRenderer, &$links ]
2014 );
2015 }
2016
2017 public function onHistoryRevisionTools( $rev, &$links, $prevRev, $user ) {
2018 return $this->container->run(
2019 'HistoryRevisionTools',
2020 [ $rev, &$links, $prevRev, $user ]
2021 );
2022 }
2023
2024 public function onHistoryTools( $revRecord, &$links, $prevRevRecord, $userIdentity ) {
2025 return $this->container->run(
2026 'HistoryTools',
2027 [ $revRecord, &$links, $prevRevRecord, $userIdentity ]
2028 );
2029 }
2030
2031 public function onHtmlCacheUpdaterAppendUrls( $title, $mode, &$append ) {
2032 return $this->container->run(
2033 'HtmlCacheUpdaterAppendUrls',
2034 [ $title, $mode, &$append ]
2035 );
2036 }
2037
2038 public function onHtmlCacheUpdaterVaryUrls( $urls, &$append ) {
2039 return $this->container->run(
2040 'HtmlCacheUpdaterVaryUrls',
2041 [ $urls, &$append ]
2042 );
2043 }
2044
2045 public function onHTMLFileCache__useFileCache( $context ) {
2046 return $this->container->run(
2047 'HTMLFileCache::useFileCache',
2048 [ $context ]
2049 );
2050 }
2051
2052 public function onHtmlPageLinkRendererBegin( $linkRenderer, $target, &$text,
2053 &$customAttribs, &$query, &$ret
2054 ) {
2055 return $this->container->run(
2056 'HtmlPageLinkRendererBegin',
2057 [ $linkRenderer, $target, &$text, &$customAttribs, &$query, &$ret ]
2058 );
2059 }
2060
2061 public function onHtmlPageLinkRendererEnd( $linkRenderer, $target, $isKnown,
2062 &$text, &$attribs, &$ret
2063 ) {
2064 return $this->container->run(
2065 'HtmlPageLinkRendererEnd',
2066 [ $linkRenderer, $target, $isKnown, &$text, &$attribs, &$ret ]
2067 );
2068 }
2069
2070 public function onImageBeforeProduceHTML( $linker, &$title, &$file,
2071 &$frameParams, &$handlerParams, &$time, &$res, $parser, &$query, &$widthOption
2072 ) {
2073 return $this->container->run(
2074 'ImageBeforeProduceHTML',
2075 [ $linker, &$title, &$file, &$frameParams, &$handlerParams, &$time,
2076 &$res, $parser, &$query, &$widthOption ]
2077 );
2078 }
2079
2080 public function onImageOpenShowImageInlineBefore( $imagePage, $output ) {
2081 return $this->container->run(
2082 'ImageOpenShowImageInlineBefore',
2083 [ $imagePage, $output ]
2084 );
2085 }
2086
2087 public function onImagePageAfterImageLinks( $imagePage, &$html ) {
2088 return $this->container->run(
2089 'ImagePageAfterImageLinks',
2090 [ $imagePage, &$html ]
2091 );
2092 }
2093
2094 public function onImagePageFileHistoryLine( $imageHistoryList, $file, &$line, &$css ) {
2095 return $this->container->run(
2096 'ImagePageFileHistoryLine',
2097 [ $imageHistoryList, $file, &$line, &$css ]
2098 );
2099 }
2100
2101 public function onImagePageFindFile( $page, &$file, &$displayFile ) {
2102 return $this->container->run(
2103 'ImagePageFindFile',
2104 [ $page, &$file, &$displayFile ]
2105 );
2106 }
2107
2108 public function onImagePageShowTOC( $page, &$toc ) {
2109 return $this->container->run(
2110 'ImagePageShowTOC',
2111 [ $page, &$toc ]
2112 );
2113 }
2114
2115 public function onImgAuthBeforeStream( &$title, &$path, &$name, &$result ) {
2116 return $this->container->run(
2117 'ImgAuthBeforeStream',
2118 [ &$title, &$path, &$name, &$result ]
2119 );
2120 }
2121
2122 public function onImgAuthModifyHeaders( $title, &$headers ) {
2123 return $this->container->run(
2124 'ImgAuthModifyHeaders',
2125 [ $title, &$headers ]
2126 );
2127 }
2128
2129 public function onImportHandleLogItemXMLTag( $reader, $logInfo ) {
2130 return $this->container->run(
2131 'ImportHandleLogItemXMLTag',
2132 [ $reader, $logInfo ]
2133 );
2134 }
2135
2136 public function onImportHandlePageXMLTag( $reader, &$pageInfo ) {
2137 return $this->container->run(
2138 'ImportHandlePageXMLTag',
2139 [ $reader, &$pageInfo ]
2140 );
2141 }
2142
2143 public function onImportHandleRevisionXMLTag( $reader, $pageInfo,
2144 $revisionInfo
2145 ) {
2146 return $this->container->run(
2147 'ImportHandleRevisionXMLTag',
2148 [ $reader, $pageInfo, $revisionInfo ]
2149 );
2150 }
2151
2152 public function onImportHandleContentXMLTag( $reader, $contentInfo ) {
2153 return $this->container->run(
2154 'ImportHandleContentXMLTag',
2155 [ $reader, $contentInfo ] );
2156 }
2157
2158 public function onImportHandleToplevelXMLTag( $reader ) {
2159 return $this->container->run(
2160 'ImportHandleToplevelXMLTag',
2161 [ $reader ]
2162 );
2163 }
2164
2165 public function onImportHandleUnknownUser( $name ) {
2166 return $this->container->run(
2167 'ImportHandleUnknownUser',
2168 [ $name ]
2169 );
2170 }
2171
2172 public function onImportHandleUploadXMLTag( $reader, $revisionInfo ) {
2173 return $this->container->run(
2174 'ImportHandleUploadXMLTag',
2175 [ $reader, $revisionInfo ]
2176 );
2177 }
2178
2179 public function onImportLogInterwikiLink( &$fullInterwikiPrefix, &$pageTitle ) {
2180 return $this->container->run(
2181 'ImportLogInterwikiLink',
2182 [ &$fullInterwikiPrefix, &$pageTitle ]
2183 );
2184 }
2185
2186 public function onImportSources( &$importSources ) {
2187 return $this->container->run(
2188 'ImportSources',
2189 [ &$importSources ]
2190 );
2191 }
2192
2193 public function onInfoAction( $context, &$pageInfo ) {
2194 return $this->container->run(
2195 'InfoAction',
2196 [ $context, &$pageInfo ]
2197 );
2198 }
2199
2200 public function onInitializeArticleMaybeRedirect( $title, $request,
2201 &$ignoreRedirect, &$target, &$article
2202 ) {
2203 return $this->container->run(
2204 'InitializeArticleMaybeRedirect',
2205 [ $title, $request, &$ignoreRedirect, &$target, &$article ]
2206 );
2207 }
2208
2209 public function onInternalParseBeforeLinks( $parser, &$text, $stripState ) {
2210 return $this->container->run(
2211 'InternalParseBeforeLinks',
2212 [ $parser, &$text, $stripState ]
2213 );
2214 }
2215
2216 public function onInternalParseBeforeSanitize( $parser, &$text, $stripState ) {
2217 return $this->container->run(
2218 'InternalParseBeforeSanitize',
2219 [ $parser, &$text, $stripState ]
2220 );
2221 }
2222
2223 public function onInterwikiLoadPrefix( $prefix, &$iwData ) {
2224 return $this->container->run(
2225 'InterwikiLoadPrefix',
2226 [ $prefix, &$iwData ]
2227 );
2228 }
2229
2230 public function onInvalidateEmailComplete( $user ) {
2231 return $this->container->run(
2232 'InvalidateEmailComplete',
2233 [ $user ]
2234 );
2235 }
2236
2237 public function onIRCLineURL( &$url, &$query, $rc ) {
2238 return $this->container->run(
2239 'IRCLineURL',
2240 [ &$url, &$query, $rc ]
2241 );
2242 }
2243
2244 public function onIsFileCacheable( $article ) {
2245 return $this->container->run(
2246 'IsFileCacheable',
2247 [ $article ]
2248 );
2249 }
2250
2251 public function onIsTrustedProxy( $ip, &$result ) {
2252 return $this->container->run(
2253 'IsTrustedProxy',
2254 [ $ip, &$result ]
2255 );
2256 }
2257
2258 public function onIsUploadAllowedFromUrl( $url, &$allowed ) {
2259 return $this->container->run(
2260 'IsUploadAllowedFromUrl',
2261 [ $url, &$allowed ]
2262 );
2263 }
2264
2265 public function onIsValidEmailAddr( $addr, &$result ) {
2266 return $this->container->run(
2267 'isValidEmailAddr',
2268 [ $addr, &$result ]
2269 );
2270 }
2271
2272 public function onIsValidPassword( $password, &$result, $user ) {
2273 return $this->container->run(
2274 'isValidPassword',
2275 [ $password, &$result, $user ]
2276 );
2277 }
2278
2279 public function onLanguageGetNamespaces( &$namespaces ) {
2280 return $this->container->run(
2281 'LanguageGetNamespaces',
2282 [ &$namespaces ]
2283 );
2284 }
2285
2286 public function onLanguageGetTranslatedLanguageNames( &$names, $code ) {
2287 return $this->container->run(
2288 'LanguageGetTranslatedLanguageNames',
2289 [ &$names, $code ]
2290 );
2291 }
2292
2293 public function onLanguageLinks( $title, &$links, &$linkFlags ) {
2294 return $this->container->run(
2295 'LanguageLinks',
2296 [ $title, &$links, &$linkFlags ]
2297 );
2298 }
2299
2300 public function onLanguageSelector( $out, $cssClassName ) {
2301 return $this->container->run(
2302 'LanguageSelector',
2303 [ $out, $cssClassName ]
2304 );
2305 }
2306
2307 public function onLanguage__getMessagesFileName( $code, &$file ) {
2308 return $this->container->run(
2309 'Language::getMessagesFileName',
2310 [ $code, &$file ]
2311 );
2312 }
2313
2314 public function onLinkBegin( $skin, $target, &$html, &$customAttribs, &$query,
2315 &$options, &$ret
2316 ) {
2317 return $this->container->run(
2318 'LinkBegin',
2319 [ $skin, $target, &$html, &$customAttribs, &$query, &$options,
2320 &$ret ]
2321 );
2322 }
2323
2324 public function onLinkEnd( $skin, $target, $options, &$html, &$attribs, &$ret ) {
2325 return $this->container->run(
2326 'LinkEnd',
2327 [ $skin, $target, $options, &$html, &$attribs, &$ret ]
2328 );
2329 }
2330
2331 public function onLinkerMakeExternalImage( &$url, &$alt, &$img ) {
2332 return $this->container->run(
2333 'LinkerMakeExternalImage',
2334 [ &$url, &$alt, &$img ]
2335 );
2336 }
2337
2338 public function onLinkerMakeExternalLink( &$url, &$text, &$link, &$attribs,
2339 $linkType
2340 ) {
2341 return $this->container->run(
2342 'LinkerMakeExternalLink',
2343 [ &$url, &$text, &$link, &$attribs, $linkType ]
2344 );
2345 }
2346
2347 public function onLinkerMakeMediaLinkFile( $title, $file, &$html, &$attribs,
2348 &$ret
2349 ) {
2350 return $this->container->run(
2351 'LinkerMakeMediaLinkFile',
2352 [ $title, $file, &$html, &$attribs, &$ret ]
2353 );
2354 }
2355
2356 public function onLinksUpdate( $linksUpdate ) {
2357 return $this->container->run(
2358 'LinksUpdate',
2359 [ $linksUpdate ]
2360 );
2361 }
2362
2363 public function onLinksUpdateAfterInsert( $linksUpdate, $table, $insertions ) {
2364 return $this->container->run(
2365 'LinksUpdateAfterInsert',
2366 [ $linksUpdate, $table, $insertions ]
2367 );
2368 }
2369
2370 public function onLinksUpdateComplete( $linksUpdate, $ticket ) {
2371 return $this->container->run(
2372 'LinksUpdateComplete',
2373 [ $linksUpdate, $ticket ]
2374 );
2375 }
2376
2377 public function onLinksUpdateConstructed( $linksUpdate ) {
2378 return $this->container->run(
2379 'LinksUpdateConstructed',
2380 [ $linksUpdate ]
2381 );
2382 }
2383
2384 public function onListDefinedTags( &$tags ) {
2385 return $this->container->run(
2386 'ListDefinedTags',
2387 [ &$tags ]
2388 );
2389 }
2390
2391 public function onLoadExtensionSchemaUpdates( $updater ) {
2392 return $this->container->run(
2393 'LoadExtensionSchemaUpdates',
2394 [ $updater ],
2395 [ 'noServices' => true ]
2396 );
2397 }
2398
2399 public function onLocalFilePurgeThumbnails( $file, $archiveName, $urls ) {
2400 return $this->container->run(
2401 'LocalFilePurgeThumbnails',
2402 [ $file, $archiveName, $urls ]
2403 );
2404 }
2405
2406 public function onLocalFile__getHistory( $file, &$tables, &$fields, &$conds,
2407 &$opts, &$join_conds
2408 ) {
2409 return $this->container->run(
2410 'LocalFile::getHistory',
2411 [ $file, &$tables, &$fields, &$conds, &$opts, &$join_conds ]
2412 );
2413 }
2414
2415 public function onLocalisationCacheRecache( $cache, $code, &$alldata, $unused ) {
2416 return $this->container->run(
2417 'LocalisationCacheRecache',
2418 [ $cache, $code, &$alldata, $unused ]
2419 );
2420 }
2421
2422 public function onLocalisationCacheRecacheFallback( $cache, $code, &$alldata ) {
2423 return $this->container->run(
2424 'LocalisationCacheRecacheFallback',
2425 [ $cache, $code, &$alldata ]
2426 );
2427 }
2428
2429 public function onLocalUserCreated( $user, $autocreated ) {
2430 return $this->container->run(
2431 'LocalUserCreated',
2432 [ $user, $autocreated ]
2433 );
2434 }
2435
2436 public function onLogEventsListGetExtraInputs( $type, $logEventsList, &$input,
2437 &$formDescriptor
2438 ) {
2439 return $this->container->run(
2440 'LogEventsListGetExtraInputs',
2441 [ $type, $logEventsList, &$input, &$formDescriptor ]
2442 );
2443 }
2444
2445 public function onLogEventsListLineEnding( $page, &$ret, $entry, &$classes,
2446 &$attribs
2447 ) {
2448 return $this->container->run(
2449 'LogEventsListLineEnding',
2450 [ $page, &$ret, $entry, &$classes, &$attribs ]
2451 );
2452 }
2453
2454 public function onLogEventsListShowLogExtract( &$s, $types, $page, $user,
2455 $param
2456 ) {
2457 return $this->container->run(
2458 'LogEventsListShowLogExtract',
2459 [ &$s, $types, $page, $user, $param ]
2460 );
2461 }
2462
2463 public function onLogException( $e, $suppressed ) {
2464 return $this->container->run(
2465 'LogException',
2466 [ $e, $suppressed ]
2467 );
2468 }
2469
2470 public function onLoginFormValidErrorMessages( array &$messages ) {
2471 return $this->container->run(
2472 'LoginFormValidErrorMessages',
2473 [ &$messages ]
2474 );
2475 }
2476
2477 public function onLogLine( $log_type, $log_action, $title, $paramArray,
2478 &$comment, &$revert, $time
2479 ) {
2480 return $this->container->run(
2481 'LogLine',
2482 [ $log_type, $log_action, $title, $paramArray, &$comment,
2483 &$revert, $time ]
2484 );
2485 }
2486
2487 public function onLonelyPagesQuery( &$tables, &$conds, &$joinConds ) {
2488 return $this->container->run(
2489 'LonelyPagesQuery',
2490 [ &$tables, &$conds, &$joinConds ]
2491 );
2492 }
2493
2494 public function onMagicWordwgVariableIDs( &$variableIDs ) {
2495 return $this->container->run(
2496 'MagicWordwgVariableIDs',
2497 [ &$variableIDs ]
2498 );
2499 }
2500
2501 public function onMaintenanceRefreshLinksInit( $refreshLinks ) {
2502 return $this->container->run(
2503 'MaintenanceRefreshLinksInit',
2504 [ $refreshLinks ]
2505 );
2506 }
2507
2508 public function onMaintenanceUpdateAddParams( &$params ) {
2509 return $this->container->run(
2510 'MaintenanceUpdateAddParams',
2511 [ &$params ]
2512 );
2513 }
2514
2515 public function onMakeGlobalVariablesScript( &$vars, $out ) {
2516 return $this->container->run(
2517 'MakeGlobalVariablesScript',
2518 [ &$vars, $out ]
2519 );
2520 }
2521
2522 public function onManualLogEntryBeforePublish( $logEntry ) : void {
2523 $this->container->run(
2524 'ManualLogEntryBeforePublish',
2525 [ $logEntry ],
2526 [ 'abortable' => false ]
2527 );
2528 }
2529
2530 public function onMarkPatrolled( $rcid, $user, $wcOnlySysopsCanPatrol, $auto,
2531 &$tags
2532 ) {
2533 return $this->container->run(
2534 'MarkPatrolled',
2535 [ $rcid, $user, $wcOnlySysopsCanPatrol, $auto, &$tags ]
2536 );
2537 }
2538
2539 public function onMarkPatrolledComplete( $rcid, $user, $wcOnlySysopsCanPatrol,
2540 $auto
2541 ) {
2542 return $this->container->run(
2543 'MarkPatrolledComplete',
2544 [ $rcid, $user, $wcOnlySysopsCanPatrol, $auto ]
2545 );
2546 }
2547
2548 public function onMediaWikiPerformAction( $output, $article, $title, $user,
2549 $request, $mediaWiki
2550 ) {
2551 return $this->container->run(
2552 'MediaWikiPerformAction',
2553 [ $output, $article, $title, $user, $request, $mediaWiki ]
2554 );
2555 }
2556
2557 public function onMediaWikiPHPUnitTest__endTest( $test, $time ) {
2558 return $this->container->run(
2559 'MediaWikiPHPUnitTest::endTest',
2560 [ $test, $time ]
2561 );
2562 }
2563
2564 public function onMediaWikiPHPUnitTest__startTest( $test ) {
2565 return $this->container->run(
2566 'MediaWikiPHPUnitTest::startTest',
2567 [ $test ]
2568 );
2569 }
2570
2571 public function onMediaWikiServices( $services ) {
2572 return $this->container->run(
2573 'MediaWikiServices',
2574 [ $services ]
2575 );
2576 }
2577
2578 public function onMessageCacheReplace( $title, $text ) {
2579 return $this->container->run(
2580 'MessageCacheReplace',
2581 [ $title, $text ]
2582 );
2583 }
2584
2585 public function onMessageCache__get( &$key ) {
2586 return $this->container->run(
2587 'MessageCache::get',
2588 [ &$key ]
2589 );
2590 }
2591
2592 public function onMessagesPreLoad( $title, &$message, $code ) {
2593 return $this->container->run(
2594 'MessagesPreLoad',
2595 [ $title, &$message, $code ]
2596 );
2597 }
2598
2599 public function onMimeMagicGuessFromContent( $mimeMagic, &$head, &$tail, $file,
2600 &$mime
2601 ) {
2602 return $this->container->run(
2603 'MimeMagicGuessFromContent',
2604 [ $mimeMagic, &$head, &$tail, $file, &$mime ]
2605 );
2606 }
2607
2608 public function onMimeMagicImproveFromExtension( $mimeMagic, $ext, &$mime ) {
2609 return $this->container->run(
2610 'MimeMagicImproveFromExtension',
2611 [ $mimeMagic, $ext, &$mime ]
2612 );
2613 }
2614
2615 public function onMimeMagicInit( $mimeMagic ) {
2616 return $this->container->run(
2617 'MimeMagicInit',
2618 [ $mimeMagic ]
2619 );
2620 }
2621
2622 public function onModifyExportQuery( $db, &$tables, $cond, &$opts,
2623 &$join_conds, &$conds
2624 ) {
2625 return $this->container->run(
2626 'ModifyExportQuery',
2627 [ $db, &$tables, $cond, &$opts, &$join_conds, &$conds ]
2628 );
2629 }
2630
2631 public function onMovePageCheckPermissions( $oldTitle, $newTitle, $user,
2632 $reason, $status
2633 ) {
2634 return $this->container->run(
2635 'MovePageCheckPermissions',
2636 [ $oldTitle, $newTitle, $user, $reason, $status ]
2637 );
2638 }
2639
2640 public function onMovePageIsValidMove( $oldTitle, $newTitle, $status ) {
2641 return $this->container->run(
2642 'MovePageIsValidMove',
2643 [ $oldTitle, $newTitle, $status ]
2644 );
2645 }
2646
2647 public function onMultiContentSave( $renderedRevision, $user, $summary, $flags,
2648 $status
2649 ) {
2650 return $this->container->run(
2651 'MultiContentSave',
2652 [ $renderedRevision, $user, $summary, $flags, $status ]
2653 );
2654 }
2655
2656 public function onNamespaceIsMovable( $index, &$result ) {
2657 return $this->container->run(
2658 'NamespaceIsMovable',
2659 [ $index, &$result ]
2660 );
2661 }
2662
2663 public function onNewDifferenceEngine( $title, &$oldId, &$newId, $old, $new ) {
2664 return $this->container->run(
2665 'NewDifferenceEngine',
2666 [ $title, &$oldId, &$newId, $old, $new ]
2667 );
2668 }
2669
2670 public function onNewPagesLineEnding( $page, &$ret, $row, &$classes, &$attribs ) {
2671 return $this->container->run(
2672 'NewPagesLineEnding',
2673 [ $page, &$ret, $row, &$classes, &$attribs ]
2674 );
2675 }
2676
2677 public function onNewRevisionFromEditComplete( $wikiPage, $rev, $originalRevId,
2678 $user, &$tags
2679 ) {
2680 return $this->container->run(
2681 'NewRevisionFromEditComplete',
2682 [ $wikiPage, $rev, $originalRevId, $user, &$tags ]
2683 );
2684 }
2685
2686 public function onOldChangesListRecentChangesLine( $changeslist, &$s, $rc,
2687 &$classes, &$attribs
2688 ) {
2689 return $this->container->run(
2690 'OldChangesListRecentChangesLine',
2691 [ $changeslist, &$s, $rc, &$classes, &$attribs ]
2692 );
2693 }
2694
2695 public function onOpenSearchUrls( &$urls ) {
2696 return $this->container->run(
2697 'OpenSearchUrls',
2698 [ &$urls ]
2699 );
2700 }
2701
2702 public function onOpportunisticLinksUpdate( $page, $title, $parserOutput ) {
2703 return $this->container->run(
2704 'OpportunisticLinksUpdate',
2705 [ $page, $title, $parserOutput ]
2706 );
2707 }
2708
2709 public function onOtherAutoblockLogLink( &$otherBlockLink ) {
2710 return $this->container->run(
2711 'OtherAutoblockLogLink',
2712 [ &$otherBlockLink ]
2713 );
2714 }
2715
2716 public function onOtherBlockLogLink( &$otherBlockLink, $ip ) {
2717 return $this->container->run(
2718 'OtherBlockLogLink',
2719 [ &$otherBlockLink, $ip ]
2720 );
2721 }
2722
2723 public function onOutputPageAfterGetHeadLinksArray( &$tags, $out ) {
2724 return $this->container->run(
2725 'OutputPageAfterGetHeadLinksArray',
2726 [ &$tags, $out ]
2727 );
2728 }
2729
2730 public function onOutputPageBeforeHTML( $out, &$text ) {
2731 return $this->container->run(
2732 'OutputPageBeforeHTML',
2733 [ $out, &$text ]
2734 );
2735 }
2736
2737 public function onOutputPageBodyAttributes( $out, $sk, &$bodyAttrs ) {
2738 return $this->container->run(
2739 'OutputPageBodyAttributes',
2740 [ $out, $sk, &$bodyAttrs ]
2741 );
2742 }
2743
2744 public function onOutputPageCheckLastModified( &$modifiedTimes, $out ) {
2745 return $this->container->run(
2746 'OutputPageCheckLastModified',
2747 [ &$modifiedTimes, $out ]
2748 );
2749 }
2750
2751 public function onOutputPageMakeCategoryLinks( $out, $categories, &$links ) {
2752 return $this->container->run(
2753 'OutputPageMakeCategoryLinks',
2754 [ $out, $categories, &$links ]
2755 );
2756 }
2757
2758 public function onOutputPageParserOutput( $out, $parserOutput ) : void {
2759 $this->container->run(
2760 'OutputPageParserOutput',
2761 [ $out, $parserOutput ],
2762 [ 'abortable' => false ]
2763 );
2764 }
2765
2766 public function onPageContentInsertComplete( $wikiPage, $user, $content,
2767 $summary, $isMinor, $isWatch, $section, $flags, $revision
2768 ) {
2769 return $this->container->run(
2770 'PageContentInsertComplete',
2771 [ $wikiPage, $user, $content, $summary, $isMinor, $isWatch,
2772 $section, $flags, $revision ]
2773 );
2774 }
2775
2776 public function onPageContentLanguage( $title, &$pageLang, $userLang ) {
2777 return $this->container->run(
2778 'PageContentLanguage',
2779 [ $title, &$pageLang, $userLang ]
2780 );
2781 }
2782
2783 public function onPageContentSave( $wikiPage, $user, $content, &$summary,
2784 $isminor, $iswatch, $section, $flags, $status
2785 ) {
2786 return $this->container->run(
2787 'PageContentSave',
2788 [ $wikiPage, $user, $content, &$summary, $isminor, $iswatch,
2789 $section, $flags, $status ]
2790 );
2791 }
2792
2793 public function onPageContentSaveComplete( $wikiPage, $user, $content,
2794 $summary, $isMinor, $isWatch, $section, $flags, $revision, $status,
2795 $originalRevId, $undidRevId
2796 ) {
2797 return $this->container->run(
2798 'PageContentSaveComplete',
2799 [ $wikiPage, $user, $content, $summary, $isMinor, $isWatch,
2800 $section, $flags, $revision, $status, $originalRevId, $undidRevId ]
2801 );
2802 }
2803
2804 public function onPageDeletionDataUpdates( $title, $revision, &$updates ) {
2805 return $this->container->run(
2806 'PageDeletionDataUpdates',
2807 [ $title, $revision, &$updates ]
2808 );
2809 }
2810
2811 public function onPageHistoryBeforeList( $article, $context ) {
2812 return $this->container->run(
2813 'PageHistoryBeforeList',
2814 [ $article, $context ]
2815 );
2816 }
2817
2818 public function onPageHistoryLineEnding( $historyAction, &$row, &$s, &$classes,
2819 &$attribs
2820 ) {
2821 return $this->container->run(
2822 'PageHistoryLineEnding',
2823 [ $historyAction, &$row, &$s, &$classes, &$attribs ]
2824 );
2825 }
2826
2827 public function onPageHistoryPager__doBatchLookups( $pager, $result ) {
2828 return $this->container->run(
2829 'PageHistoryPager::doBatchLookups',
2830 [ $pager, $result ]
2831 );
2832 }
2833
2834 public function onPageHistoryPager__getQueryInfo( $pager, &$queryInfo ) {
2835 return $this->container->run(
2836 'PageHistoryPager::getQueryInfo',
2837 [ $pager, &$queryInfo ]
2838 );
2839 }
2840
2841 public function onPageMoveComplete( $old, $new, $user, $pageid, $redirid, $reason, $revision ) {
2842 return $this->container->run(
2843 'PageMoveComplete',
2844 [ $old, $new, $user, $pageid, $redirid, $reason, $revision ]
2845 );
2846 }
2847
2848 public function onPageMoveCompleting( $old, $new, $user, $pageid, $redirid, $reason, $revision ) {
2849 return $this->container->run(
2850 'PageMoveCompleting',
2851 [ $old, $new, $user, $pageid, $redirid, $reason, $revision ]
2852 );
2853 }
2854
2855 public function onPageRenderingHash( &$confstr, $user, &$forOptions ) {
2856 return $this->container->run(
2857 'PageRenderingHash',
2858 [ &$confstr, $user, &$forOptions ]
2859 );
2860 }
2861
2862 public function onPageSaveComplete( $wikiPage, $user, $summary, $flags,
2863 $revisionRecord, $editResult
2864 ) {
2865 return $this->container->run(
2866 'PageSaveComplete',
2867 [ $wikiPage, $user, $summary, $flags, $revisionRecord, $editResult ]
2868 );
2869 }
2870
2871 public function onPageViewUpdates( $wikipage, $user ) {
2872 return $this->container->run(
2873 'PageViewUpdates',
2874 [ $wikipage, $user ]
2875 );
2876 }
2877
2878 public function onParserAfterParse( $parser, &$text, $stripState ) {
2879 return $this->container->run(
2880 'ParserAfterParse',
2881 [ $parser, &$text, $stripState ]
2882 );
2883 }
2884
2885 public function onParserAfterStrip( $parser, &$text, $stripState ) {
2886 return $this->container->run(
2887 'ParserAfterStrip',
2888 [ $parser, &$text, $stripState ]
2889 );
2890 }
2891
2892 public function onParserAfterTidy( $parser, &$text ) {
2893 return $this->container->run(
2894 'ParserAfterTidy',
2895 [ $parser, &$text ]
2896 );
2897 }
2898
2899 public function onParserBeforeInternalParse( $parser, &$text, $stripState ) {
2900 return $this->container->run(
2901 'ParserBeforeInternalParse',
2902 [ $parser, &$text, $stripState ]
2903 );
2904 }
2905
2906 public function onParserBeforePreprocess( $parser, &$text, $stripState ) {
2907 return $this->container->run(
2908 'ParserBeforePreprocess',
2909 [ $parser, &$text, $stripState ]
2910 );
2911 }
2912
2913 public function onParserBeforeStrip( $parser, &$text, $stripState ) {
2914 return $this->container->run(
2915 'ParserBeforeStrip',
2916 [ $parser, &$text, $stripState ]
2917 );
2918 }
2919
2920 public function onParserBeforeTidy( $parser, &$text ) {
2921 return $this->container->run(
2922 'ParserBeforeTidy',
2923 [ $parser, &$text ]
2924 );
2925 }
2926
2927 public function onParserCacheSaveComplete( $parserCache, $parserOutput, $title,
2928 $popts, $revId
2929 ) {
2930 return $this->container->run(
2931 'ParserCacheSaveComplete',
2932 [ $parserCache, $parserOutput, $title, $popts, $revId ]
2933 );
2934 }
2935
2936 public function onParserClearState( $parser ) {
2937 return $this->container->run(
2938 'ParserClearState',
2939 [ $parser ]
2940 );
2941 }
2942
2943 public function onParserCloned( $parser ) {
2944 return $this->container->run(
2945 'ParserCloned',
2946 [ $parser ]
2947 );
2948 }
2949
2950 public function onParserFetchTemplate( $parser, $title, $rev, &$text, &$deps ) {
2951 return $this->container->run(
2952 'ParserFetchTemplate',
2953 [ $parser, $title, $rev, &$text, &$deps ]
2954 );
2955 }
2956
2957 public function onParserFirstCallInit( $parser ) {
2958 return $this->container->run(
2959 'ParserFirstCallInit',
2960 [ $parser ]
2961 );
2962 }
2963
2964 public function onParserGetVariableValueSwitch( $parser, &$variableCache,
2965 $magicWordId, &$ret, $frame
2966 ) {
2967 return $this->container->run(
2968 'ParserGetVariableValueSwitch',
2969 [ $parser, &$variableCache, $magicWordId, &$ret, $frame ]
2970 );
2971 }
2972
2973 public function onParserGetVariableValueTs( $parser, &$time ) {
2974 return $this->container->run(
2975 'ParserGetVariableValueTs',
2976 [ $parser, &$time ]
2977 );
2978 }
2979
2980 public function onParserGetVariableValueVarCache( $parser, &$varCache ) {
2981 return $this->container->run(
2982 'ParserGetVariableValueVarCache',
2983 [ $parser, &$varCache ]
2984 );
2985 }
2986
2987 public function onParserLimitReportFormat( $key, &$value, &$report, $isHTML,
2988 $localize
2989 ) {
2990 return $this->container->run(
2991 'ParserLimitReportFormat',
2992 [ $key, &$value, &$report, $isHTML, $localize ]
2993 );
2994 }
2995
2996 public function onParserLimitReportPrepare( $parser, $output ) {
2997 return $this->container->run(
2998 'ParserLimitReportPrepare',
2999 [ $parser, $output ]
3000 );
3001 }
3002
3003 public function onParserMakeImageParams( $title, $file, &$params, $parser ) {
3004 return $this->container->run(
3005 'ParserMakeImageParams',
3006 [ $title, $file, &$params, $parser ]
3007 );
3008 }
3009
3010 public function onParserOptionsRegister( &$defaults, &$inCacheKey, &$lazyLoad ) {
3011 return $this->container->run(
3012 'ParserOptionsRegister',
3013 [ &$defaults, &$inCacheKey, &$lazyLoad ]
3014 );
3015 }
3016
3017 public function onParserOutputPostCacheTransform( $parserOutput, &$text,
3018 &$options
3019 ) : void {
3020 $this->container->run(
3021 'ParserOutputPostCacheTransform',
3022 [ $parserOutput, &$text, &$options ],
3023 [ 'abortable' => false ]
3024 );
3025 }
3026
3027 public function onParserOutputStashForEdit( $page, $content, $output, $summary,
3028 $user
3029 ) {
3030 return $this->container->run(
3031 'ParserOutputStashForEdit',
3032 [ $page, $content, $output, $summary, $user ]
3033 );
3034 }
3035
3036 public function onParserPreSaveTransformComplete( $parser, &$text ) {
3037 return $this->container->run(
3038 'ParserPreSaveTransformComplete',
3039 [ $parser, &$text ]
3040 );
3041 }
3042
3043 public function onParserSectionCreate( $parser, $section, &$sectionContent,
3044 $showEditLinks
3045 ) {
3046 return $this->container->run(
3047 'ParserSectionCreate',
3048 [ $parser, $section, &$sectionContent, $showEditLinks ]
3049 );
3050 }
3051
3052 public function onParserTestGlobals( &$globals ) {
3053 return $this->container->run(
3054 'ParserTestGlobals',
3055 [ &$globals ]
3056 );
3057 }
3058
3059 public function onParserTestTables( &$tables ) {
3060 return $this->container->run(
3061 'ParserTestTables',
3062 [ &$tables ]
3063 );
3064 }
3065
3066 public function onPasswordPoliciesForUser( $user, &$effectivePolicy ) {
3067 return $this->container->run(
3068 'PasswordPoliciesForUser',
3069 [ $user, &$effectivePolicy ]
3070 );
3071 }
3072
3073 public function onPerformRetroactiveAutoblock( $block, &$blockIds ) {
3074 return $this->container->run(
3075 'PerformRetroactiveAutoblock',
3076 [ $block, &$blockIds ]
3077 );
3078 }
3079
3080 public function onPersonalUrls( &$personal_urls, &$title, $skin ) : void {
3081 $this->container->run(
3082 'PersonalUrls',
3083 [ &$personal_urls, &$title, $skin ],
3084 [ 'abortable' => false ]
3085 );
3086 }
3087
3088 public function onPingLimiter( $user, $action, &$result, $incrBy ) {
3089 return $this->container->run(
3090 'PingLimiter',
3091 [ $user, $action, &$result, $incrBy ]
3092 );
3093 }
3094
3095 public function onPlaceNewSection( $content, $oldtext, $subject, &$text ) {
3096 return $this->container->run(
3097 'PlaceNewSection',
3098 [ $content, $oldtext, $subject, &$text ]
3099 );
3100 }
3101
3102 public function onPostLoginRedirect( &$returnTo, &$returnToQuery, &$type ) {
3103 return $this->container->run(
3104 'PostLoginRedirect',
3105 [ &$returnTo, &$returnToQuery, &$type ]
3106 );
3107 }
3108
3109 public function onPreferencesFormPreSave( $formData, $form, $user, &$result,
3110 $oldUserOptions
3111 ) {
3112 return $this->container->run(
3113 'PreferencesFormPreSave',
3114 [ $formData, $form, $user, &$result, $oldUserOptions ]
3115 );
3116 }
3117
3118 public function onPreferencesGetLegend( $form, $key, &$legend ) {
3119 return $this->container->run(
3120 'PreferencesGetLegend',
3121 [ $form, $key, &$legend ]
3122 );
3123 }
3124
3125 public function onPrefixSearchBackend( $ns, $search, $limit, &$results,
3126 $offset
3127 ) {
3128 return $this->container->run(
3129 'PrefixSearchBackend',
3130 [ $ns, $search, $limit, &$results, $offset ]
3131 );
3132 }
3133
3134 public function onPrefixSearchExtractNamespace( &$namespaces, &$search ) {
3135 return $this->container->run(
3136 'PrefixSearchExtractNamespace',
3137 [ &$namespaces, &$search ]
3138 );
3139 }
3140
3141 public function onPrefsEmailAudit( $user, $oldaddr, $newaddr ) {
3142 return $this->container->run(
3143 'PrefsEmailAudit',
3144 [ $user, $oldaddr, $newaddr ]
3145 );
3146 }
3147
3148 public function onProtectionForm__buildForm( $article, &$output ) {
3149 return $this->container->run(
3150 'ProtectionForm::buildForm',
3151 [ $article, &$output ]
3152 );
3153 }
3154
3155 public function onProtectionForm__save( $article, &$errorMsg, $reasonstr ) {
3156 return $this->container->run(
3157 'ProtectionForm::save',
3158 [ $article, &$errorMsg, $reasonstr ]
3159 );
3160 }
3161
3162 public function onProtectionForm__showLogExtract( $article, $out ) {
3163 return $this->container->run(
3164 'ProtectionForm::showLogExtract',
3165 [ $article, $out ]
3166 );
3167 }
3168
3169 public function onRandomPageQuery( &$tables, &$conds, &$joinConds ) {
3170 return $this->container->run(
3171 'RandomPageQuery',
3172 [ &$tables, &$conds, &$joinConds ]
3173 );
3174 }
3175
3176 public function onRawPageViewBeforeOutput( $obj, &$text ) {
3177 return $this->container->run(
3178 'RawPageViewBeforeOutput',
3179 [ $obj, &$text ]
3180 );
3181 }
3182
3183 public function onRecentChangesPurgeRows( $rows ) {
3184 return $this->container->run(
3185 'RecentChangesPurgeRows',
3186 [ $rows ]
3187 );
3188 }
3189
3190 public function onRecentChange_save( $recentChange ) {
3191 return $this->container->run(
3192 'RecentChange_save',
3193 [ $recentChange ]
3194 );
3195 }
3196
3197 public function onRedirectSpecialArticleRedirectParams( &$redirectParams ) {
3198 return $this->container->run(
3199 'RedirectSpecialArticleRedirectParams',
3200 [ &$redirectParams ]
3201 );
3202 }
3203
3204 public function onRejectParserCacheValue( $parserOutput, $wikiPage,
3205 $parserOptions
3206 ) {
3207 return $this->container->run(
3208 'RejectParserCacheValue',
3209 [ $parserOutput, $wikiPage, $parserOptions ]
3210 );
3211 }
3212
3213 public function onRequestContextCreateSkin( $context, &$skin ) {
3214 return $this->container->run(
3215 'RequestContextCreateSkin',
3216 [ $context, &$skin ]
3217 );
3218 }
3219
3220 public function onResetPasswordExpiration( $user, &$newExpire ) {
3221 return $this->container->run(
3222 'ResetPasswordExpiration',
3223 [ $user, &$newExpire ]
3224 );
3225 }
3226
3227 public function onResourceLoaderGetConfigVars( array &$vars, $skin, Config $config ) : void {
3228 $this->container->run(
3229 'ResourceLoaderGetConfigVars',
3230 [ &$vars, $skin, $config ],
3231 [ 'abortable' => false ]
3232 );
3233 }
3234
3236 array &$magicWords
3237 ) : void {
3238 $this->container->run(
3239 'ResourceLoaderJqueryMsgModuleMagicWords',
3240 [ $context, &$magicWords ],
3241 [ 'abortable' => false ]
3242 );
3243 }
3244
3245 public function onRevisionDataUpdates( $title, $renderedRevision, &$updates ) {
3246 return $this->container->run(
3247 'RevisionDataUpdates',
3248 [ $title, $renderedRevision, &$updates ]
3249 );
3250 }
3251
3252 public function onRevisionFromEditComplete( $wikiPage, $rev, $originalRevId, $user, &$tags ) {
3253 return $this->container->run(
3254 'RevisionFromEditComplete',
3255 [ $wikiPage, $rev, $originalRevId, $user, &$tags ]
3256 );
3257 }
3258
3259 public function onRevisionInsertComplete( $revision, $data, $flags ) {
3260 return $this->container->run(
3261 'RevisionInsertComplete',
3262 [ $revision, $data, $flags ]
3263 );
3264 }
3265
3266 public function onRevisionRecordInserted( $revisionRecord ) {
3267 return $this->container->run(
3268 'RevisionRecordInserted',
3269 [ $revisionRecord ]
3270 );
3271 }
3272
3273 public function onRevisionUndeleted( $revisionRecord, $oldPageID ) {
3274 return $this->container->run(
3275 'RevisionUndeleted',
3276 [ $revisionRecord, $oldPageID ]
3277 );
3278 }
3279
3280 public function onRollbackComplete( $wikiPage, $user, $revision, $current ) {
3281 return $this->container->run(
3282 'RollbackComplete',
3283 [ $wikiPage, $user, $revision, $current ]
3284 );
3285 }
3286
3287 public function onSearchableNamespaces( &$arr ) {
3288 return $this->container->run(
3289 'SearchableNamespaces',
3290 [ &$arr ]
3291 );
3292 }
3293
3294 public function onSearchAfterNoDirectMatch( $term, &$title ) {
3295 return $this->container->run(
3296 'SearchAfterNoDirectMatch',
3297 [ $term, &$title ]
3298 );
3299 }
3300
3301 public function onSearchDataForIndex( &$fields, $handler, $page, $output,
3302 $engine
3303 ) {
3304 return $this->container->run(
3305 'SearchDataForIndex',
3306 [ &$fields, $handler, $page, $output, $engine ]
3307 );
3308 }
3309
3310 public function onSearchGetNearMatch( $term, &$title ) {
3311 return $this->container->run(
3312 'SearchGetNearMatch',
3313 [ $term, &$title ]
3314 );
3315 }
3316
3317 public function onSearchGetNearMatchBefore( $allSearchTerms, &$titleResult ) {
3318 return $this->container->run(
3319 'SearchGetNearMatchBefore',
3320 [ $allSearchTerms, &$titleResult ]
3321 );
3322 }
3323
3324 public function onSearchGetNearMatchComplete( $term, &$title ) {
3325 return $this->container->run(
3326 'SearchGetNearMatchComplete',
3327 [ $term, &$title ]
3328 );
3329 }
3330
3331 public function onSearchIndexFields( &$fields, $engine ) {
3332 return $this->container->run(
3333 'SearchIndexFields',
3334 [ &$fields, $engine ]
3335 );
3336 }
3337
3338 public function onSearchResultInitFromTitle( $title, &$id ) {
3339 return $this->container->run(
3340 'SearchResultInitFromTitle',
3341 [ $title, &$id ]
3342 );
3343 }
3344
3345 public function onSearchResultProvideDescription( array $pageIdentities, &$descriptions ) {
3346 return $this->container->run(
3347 'SearchResultProvideDescription',
3348 [ $pageIdentities, &$descriptions ]
3349 );
3350 }
3351
3352 public function onSearchResultProvideThumbnail( array $pageIdentities, &$thumbnails ) {
3353 return $this->container->run(
3354 'SearchResultProvideThumbnail',
3355 [ $pageIdentities, &$thumbnails ]
3356 );
3357 }
3358
3359 public function onSearchResultsAugment( &$setAugmentors, &$rowAugmentors ) {
3360 return $this->container->run(
3361 'SearchResultsAugment',
3362 [ &$setAugmentors, &$rowAugmentors ]
3363 );
3364 }
3365
3366 public function onSecondaryDataUpdates( $title, $oldContent, $recursive,
3367 $parserOutput, &$updates
3368 ) {
3369 return $this->container->run(
3370 'SecondaryDataUpdates',
3371 [ $title, $oldContent, $recursive, $parserOutput, &$updates ]
3372 );
3373 }
3374
3375 public function onSecuritySensitiveOperationStatus( &$status, $operation,
3376 $session, $timeSinceAuth
3377 ) {
3378 return $this->container->run(
3379 'SecuritySensitiveOperationStatus',
3380 [ &$status, $operation, $session, $timeSinceAuth ]
3381 );
3382 }
3383
3384 public function onSelfLinkBegin( $nt, &$html, &$trail, &$prefix, &$ret ) {
3385 return $this->container->run(
3386 'SelfLinkBegin',
3387 [ $nt, &$html, &$trail, &$prefix, &$ret ]
3388 );
3389 }
3390
3391 public function onSendWatchlistEmailNotification( $targetUser, $title, $enotif ) {
3392 return $this->container->run(
3393 'SendWatchlistEmailNotification',
3394 [ $targetUser, $title, $enotif ]
3395 );
3396 }
3397
3398 public function onSessionCheckInfo( &$reason, $info, $request, $metadata,
3399 $data
3400 ) {
3401 return $this->container->run(
3402 'SessionCheckInfo',
3403 [ &$reason, $info, $request, $metadata, $data ]
3404 );
3405 }
3406
3407 public function onSessionMetadata( $backend, &$metadata, $requests ) {
3408 return $this->container->run(
3409 'SessionMetadata',
3410 [ $backend, &$metadata, $requests ]
3411 );
3412 }
3413
3414 public function onSetupAfterCache() {
3415 return $this->container->run(
3416 'SetupAfterCache',
3417 []
3418 );
3419 }
3420
3421 public function onShortPagesQuery( &$tables, &$conds, &$joinConds, &$options ) {
3422 return $this->container->run(
3423 'ShortPagesQuery',
3424 [ &$tables, &$conds, &$joinConds, &$options ]
3425 );
3426 }
3427
3428 public function onShowMissingArticle( $article ) {
3429 return $this->container->run(
3430 'ShowMissingArticle',
3431 [ $article ]
3432 );
3433 }
3434
3435 public function onShowSearchHit( $searchPage, $result, $terms, &$link,
3436 &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html
3437 ) {
3438 return $this->container->run(
3439 'ShowSearchHit',
3440 [ $searchPage, $result, $terms, &$link, &$redirect, &$section,
3441 &$extract, &$score, &$size, &$date, &$related, &$html ]
3442 );
3443 }
3444
3445 public function onShowSearchHitTitle( &$title, &$titleSnippet, $result, $terms,
3446 $specialSearch, &$query, &$attributes
3447 ) {
3448 return $this->container->run(
3449 'ShowSearchHitTitle',
3450 [ &$title, &$titleSnippet, $result, $terms, $specialSearch,
3451 &$query, &$attributes ]
3452 );
3453 }
3454
3455 public function onSidebarBeforeOutput( $skin, &$sidebar ) : void {
3456 $this->container->run(
3457 'SidebarBeforeOutput',
3458 [ $skin, &$sidebar ],
3459 [ 'abortable' => false ]
3460 );
3461 }
3462
3463 public function onSiteNoticeAfter( &$siteNotice, $skin ) {
3464 return $this->container->run(
3465 'SiteNoticeAfter',
3466 [ &$siteNotice, $skin ]
3467 );
3468 }
3469
3470 public function onSiteNoticeBefore( &$siteNotice, $skin ) {
3471 return $this->container->run(
3472 'SiteNoticeBefore',
3473 [ &$siteNotice, $skin ]
3474 );
3475 }
3476
3478 array &$config
3479 ) : void {
3480 $this->container->run(
3481 'SkinPageReadyConfig',
3482 [ $context, &$config ],
3483 [ 'abortable' => false ]
3484 );
3485 }
3486
3487 public function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerItems ) {
3488 $this->container->run(
3489 'SkinAddFooterLinks',
3490 [ $skin, $key, &$footerItems ]
3491 );
3492 }
3493
3494 public function onSkinAfterBottomScripts( $skin, &$text ) {
3495 return $this->container->run(
3496 'SkinAfterBottomScripts',
3497 [ $skin, &$text ]
3498 );
3499 }
3500
3501 public function onSkinAfterContent( &$data, $skin ) {
3502 return $this->container->run(
3503 'SkinAfterContent',
3504 [ &$data, $skin ]
3505 );
3506 }
3507
3508 public function onSkinAfterPortlet( $skin, $portlet, &$html ) {
3509 return $this->container->run(
3510 'SkinAfterPortlet',
3511 [ $skin, $portlet, &$html ]
3512 );
3513 }
3514
3515 public function onSkinBuildSidebar( $skin, &$bar ) {
3516 return $this->container->run(
3517 'SkinBuildSidebar',
3518 [ $skin, &$bar ]
3519 );
3520 }
3521
3522 public function onSkinCopyrightFooter( $title, $type, &$msg, &$link ) {
3523 return $this->container->run(
3524 'SkinCopyrightFooter',
3525 [ $title, $type, &$msg, &$link ]
3526 );
3527 }
3528
3529 public function onSkinEditSectionLinks( $skin, $title, $section, $tooltip,
3530 &$result, $lang
3531 ) {
3532 return $this->container->run(
3533 'SkinEditSectionLinks',
3534 [ $skin, $title, $section, $tooltip, &$result, $lang ]
3535 );
3536 }
3537
3538 public function onSkinGetPoweredBy( &$text, $skin ) {
3539 return $this->container->run(
3540 'SkinGetPoweredBy',
3541 [ &$text, $skin ]
3542 );
3543 }
3544
3545 public function onSkinPreloadExistence( &$titles, $skin ) {
3546 return $this->container->run(
3547 'SkinPreloadExistence',
3548 [ &$titles, $skin ]
3549 );
3550 }
3551
3552 public function onSkinSubPageSubtitle( &$subpages, $skin, $out ) {
3553 return $this->container->run(
3554 'SkinSubPageSubtitle',
3555 [ &$subpages, $skin, $out ]
3556 );
3557 }
3558
3560 &$nav_urls, &$revid, &$revid2
3561 ) {
3562 return $this->container->run(
3563 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink',
3564 [ $sktemplate, &$nav_urls, &$revid, &$revid2 ]
3565 );
3566 }
3567
3568 public function onSkinTemplateGetLanguageLink( &$languageLink,
3569 $languageLinkTitle, $title, $outputPage
3570 ) {
3571 return $this->container->run(
3572 'SkinTemplateGetLanguageLink',
3573 [ &$languageLink, $languageLinkTitle, $title, $outputPage ]
3574 );
3575 }
3576
3577 public function onSkinTemplateNavigation( $sktemplate, &$links ) : void {
3578 $this->container->run(
3579 'SkinTemplateNavigation',
3580 [ $sktemplate, &$links ],
3581 [ 'abortable' => false ]
3582 );
3583 }
3584
3585 public function onSkinTemplateNavigation__SpecialPage( $sktemplate, &$links ) : void {
3586 $this->container->run(
3587 'SkinTemplateNavigation::SpecialPage',
3588 [ $sktemplate, &$links ],
3589 [ 'abortable' => false ]
3590 );
3591 }
3592
3593 public function onSkinTemplateNavigation__Universal( $sktemplate, &$links ) : void {
3594 $this->container->run(
3595 'SkinTemplateNavigation::Universal',
3596 [ $sktemplate, &$links ],
3597 [ 'abortable' => false ]
3598 );
3599 }
3600
3601 public function onSkinTemplateOutputPageBeforeExec( $sktemplate, $tpl ) {
3602 return $this->container->run(
3603 'SkinTemplateOutputPageBeforeExec',
3604 [ $sktemplate, $tpl ]
3605 );
3606 }
3607
3608 public function onSkinTemplatePreventOtherActiveTabs( $sktemplate, &$res ) {
3609 return $this->container->run(
3610 'SkinTemplatePreventOtherActiveTabs',
3611 [ $sktemplate, &$res ]
3612 );
3613 }
3614
3615 public function onSkinTemplateTabAction( $sktemplate, $title, $message,
3616 $selected, $checkEdit, &$classes, &$query, &$text, &$result
3617 ) {
3618 return $this->container->run(
3619 'SkinTemplateTabAction',
3620 [ $sktemplate, $title, $message, $selected, $checkEdit, &$classes,
3621 &$query, &$text, &$result ]
3622 );
3623 }
3624
3625 public function onSkinTemplateToolboxEnd( $sk, $dummy ) {
3626 return $this->container->run(
3627 'SkinTemplateToolboxEnd',
3628 [ $sk, $dummy ]
3629 );
3630 }
3631
3632 public function onSoftwareInfo( &$software ) {
3633 return $this->container->run(
3634 'SoftwareInfo',
3635 [ &$software ]
3636 );
3637 }
3638
3639 public function onSpecialBlockModifyFormFields( $sp, &$fields ) {
3640 return $this->container->run(
3641 'SpecialBlockModifyFormFields',
3642 [ $sp, &$fields ]
3643 );
3644 }
3645
3646 public function onSpecialContributionsBeforeMainOutput( $id, $user, $sp ) {
3647 return $this->container->run(
3648 'SpecialContributionsBeforeMainOutput',
3649 [ $id, $user, $sp ]
3650 );
3651 }
3652
3653 public function onSpecialContributions__formatRow__flags( $context, $row,
3654 &$flags
3655 ) {
3656 return $this->container->run(
3657 'SpecialContributions::formatRow::flags',
3658 [ $context, $row, &$flags ]
3659 );
3660 }
3661
3662 public function onSpecialContributions__getForm__filters( $sp, &$filters ) {
3663 return $this->container->run(
3664 'SpecialContributions::getForm::filters',
3665 [ $sp, &$filters ]
3666 );
3667 }
3668
3669 public function onSpecialListusersDefaultQuery( $pager, &$query ) {
3670 return $this->container->run(
3671 'SpecialListusersDefaultQuery',
3672 [ $pager, &$query ]
3673 );
3674 }
3675
3676 public function onSpecialListusersFormatRow( &$item, $row ) {
3677 return $this->container->run(
3678 'SpecialListusersFormatRow',
3679 [ &$item, $row ]
3680 );
3681 }
3682
3683 public function onSpecialListusersHeader( $pager, &$out ) {
3684 return $this->container->run(
3685 'SpecialListusersHeader',
3686 [ $pager, &$out ]
3687 );
3688 }
3689
3690 public function onSpecialListusersHeaderForm( $pager, &$out ) {
3691 return $this->container->run(
3692 'SpecialListusersHeaderForm',
3693 [ $pager, &$out ]
3694 );
3695 }
3696
3697 public function onSpecialListusersQueryInfo( $pager, &$query ) {
3698 return $this->container->run(
3699 'SpecialListusersQueryInfo',
3700 [ $pager, &$query ]
3701 );
3702 }
3703
3704 public function onSpecialLogAddLogSearchRelations( $type, $request, &$qc ) {
3705 return $this->container->run(
3706 'SpecialLogAddLogSearchRelations',
3707 [ $type, $request, &$qc ]
3708 );
3709 }
3710
3711 public function onSpecialMovepageAfterMove( $movePage, $oldTitle, $newTitle ) {
3712 return $this->container->run(
3713 'SpecialMovepageAfterMove',
3714 [ $movePage, $oldTitle, $newTitle ]
3715 );
3716 }
3717
3718 public function onSpecialMuteModifyFormFields( $sp, &$fields ) {
3719 return $this->container->run(
3720 'SpecialMuteModifyFormFields',
3721 [ $sp, &$fields ]
3722 );
3723 }
3724
3725 public function onSpecialMuteSubmit( $data ) {
3726 return $this->container->run(
3727 'SpecialMuteSubmit',
3728 [ $data ]
3729 );
3730 }
3731
3732 public function onSpecialNewpagesConditions( $special, $opts, &$conds,
3733 &$tables, &$fields, &$join_conds
3734 ) {
3735 return $this->container->run(
3736 'SpecialNewpagesConditions',
3737 [ $special, $opts, &$conds, &$tables, &$fields, &$join_conds ]
3738 );
3739 }
3740
3741 public function onSpecialNewPagesFilters( $special, &$filters ) {
3742 return $this->container->run(
3743 'SpecialNewPagesFilters',
3744 [ $special, &$filters ]
3745 );
3746 }
3747
3748 public function onSpecialPageAfterExecute( $special, $subPage ) {
3749 return $this->container->run(
3750 'SpecialPageAfterExecute',
3751 [ $special, $subPage ]
3752 );
3753 }
3754
3755 public function onSpecialPageBeforeExecute( $special, $subPage ) {
3756 return $this->container->run(
3757 'SpecialPageBeforeExecute',
3758 [ $special, $subPage ]
3759 );
3760 }
3761
3762 public function onSpecialPageBeforeFormDisplay( $name, $form ) {
3763 return $this->container->run(
3764 'SpecialPageBeforeFormDisplay',
3765 [ $name, $form ]
3766 );
3767 }
3768
3769 public function onSpecialPage_initList( &$list ) {
3770 return $this->container->run(
3771 'SpecialPage_initList',
3772 [ &$list ]
3773 );
3774 }
3775
3776 public function onSpecialPasswordResetOnSubmit( &$users, $data, &$error ) {
3777 return $this->container->run(
3778 'SpecialPasswordResetOnSubmit',
3779 [ &$users, $data, &$error ]
3780 );
3781 }
3782
3783 public function onSpecialRandomGetRandomTitle( &$randstr, &$isRedir,
3784 &$namespaces, &$extra, &$title
3785 ) {
3786 return $this->container->run(
3787 'SpecialRandomGetRandomTitle',
3788 [ &$randstr, &$isRedir, &$namespaces, &$extra, &$title ]
3789 );
3790 }
3791
3792 public function onSpecialRecentChangesPanel( &$extraOpts, $opts ) {
3793 return $this->container->run(
3794 'SpecialRecentChangesPanel',
3795 [ &$extraOpts, $opts ]
3796 );
3797 }
3798
3799 public function onSpecialResetTokensTokens( &$tokens ) {
3800 return $this->container->run(
3801 'SpecialResetTokensTokens',
3802 [ &$tokens ]
3803 );
3804 }
3805
3806 public function onSpecialSearchCreateLink( $t, &$params ) {
3807 return $this->container->run(
3808 'SpecialSearchCreateLink',
3809 [ $t, &$params ]
3810 );
3811 }
3812
3813 public function onSpecialSearchGoResult( $term, $title, &$url ) {
3814 return $this->container->run(
3815 'SpecialSearchGoResult',
3816 [ $term, $title, &$url ]
3817 );
3818 }
3819
3820 public function onSpecialSearchNogomatch( &$title ) {
3821 return $this->container->run(
3822 'SpecialSearchNogomatch',
3823 [ &$title ]
3824 );
3825 }
3826
3827 public function onSpecialSearchPowerBox( &$showSections, $term, &$opts ) {
3828 return $this->container->run(
3829 'SpecialSearchPowerBox',
3830 [ &$showSections, $term, &$opts ]
3831 );
3832 }
3833
3834 public function onSpecialSearchProfileForm( $search, &$form, $profile, $term,
3835 $opts
3836 ) {
3837 return $this->container->run(
3838 'SpecialSearchProfileForm',
3839 [ $search, &$form, $profile, $term, $opts ]
3840 );
3841 }
3842
3843 public function onSpecialSearchProfiles( &$profiles ) {
3844 return $this->container->run(
3845 'SpecialSearchProfiles',
3846 [ &$profiles ]
3847 );
3848 }
3849
3850 public function onSpecialSearchResults( $term, &$titleMatches, &$textMatches ) {
3851 return $this->container->run(
3852 'SpecialSearchResults',
3853 [ $term, &$titleMatches, &$textMatches ]
3854 );
3855 }
3856
3857 public function onSpecialSearchResultsAppend( $specialSearch, $output, $term ) {
3858 return $this->container->run(
3859 'SpecialSearchResultsAppend',
3860 [ $specialSearch, $output, $term ]
3861 );
3862 }
3863
3864 public function onSpecialSearchResultsPrepend( $specialSearch, $output, $term ) {
3865 return $this->container->run(
3866 'SpecialSearchResultsPrepend',
3867 [ $specialSearch, $output, $term ]
3868 );
3869 }
3870
3871 public function onSpecialSearchSetupEngine( $search, $profile, $engine ) {
3872 return $this->container->run(
3873 'SpecialSearchSetupEngine',
3874 [ $search, $profile, $engine ]
3875 );
3876 }
3877
3878 public function onSpecialStatsAddExtra( &$extraStats, $context ) {
3879 return $this->container->run(
3880 'SpecialStatsAddExtra',
3881 [ &$extraStats, $context ]
3882 );
3883 }
3884
3886 $catTitle, &$html
3887 ) {
3888 return $this->container->run(
3889 'SpecialTrackingCategories::generateCatLink',
3890 [ $specialPage, $catTitle, &$html ]
3891 );
3892 }
3893
3894 public function onSpecialTrackingCategories__preprocess( $specialPage,
3895 $trackingCategories
3896 ) {
3897 return $this->container->run(
3898 'SpecialTrackingCategories::preprocess',
3899 [ $specialPage, $trackingCategories ]
3900 );
3901 }
3902
3903 public function onSpecialUploadComplete( $form ) {
3904 return $this->container->run(
3905 'SpecialUploadComplete',
3906 [ $form ]
3907 );
3908 }
3909
3910 public function onSpecialVersionVersionUrl( $version, &$versionUrl ) {
3911 return $this->container->run(
3912 'SpecialVersionVersionUrl',
3913 [ $version, &$versionUrl ]
3914 );
3915 }
3916
3917 public function onSpecialWatchlistGetNonRevisionTypes( &$nonRevisionTypes ) {
3918 return $this->container->run(
3919 'SpecialWatchlistGetNonRevisionTypes',
3920 [ &$nonRevisionTypes ]
3921 );
3922 }
3923
3924 public function onTestCanonicalRedirect( $request, $title, $output ) {
3925 return $this->container->run(
3926 'TestCanonicalRedirect',
3927 [ $request, $title, $output ]
3928 );
3929 }
3930
3931 public function onThumbnailBeforeProduceHTML( $thumbnail, &$attribs,
3932 &$linkAttribs
3933 ) {
3934 return $this->container->run(
3935 'ThumbnailBeforeProduceHTML',
3936 [ $thumbnail, &$attribs, &$linkAttribs ]
3937 );
3938 }
3939
3940 public function onTitleArrayFromResult( &$titleArray, $res ) {
3941 return $this->container->run(
3942 'TitleArrayFromResult',
3943 [ &$titleArray, $res ]
3944 );
3945 }
3946
3947 public function onTitleExists( $title, &$exists ) {
3948 return $this->container->run(
3949 'TitleExists',
3950 [ $title, &$exists ]
3951 );
3952 }
3953
3954 public function onTitleGetEditNotices( $title, $oldid, &$notices ) {
3955 return $this->container->run(
3956 'TitleGetEditNotices',
3957 [ $title, $oldid, &$notices ]
3958 );
3959 }
3960
3961 public function onTitleGetRestrictionTypes( $title, &$types ) {
3962 return $this->container->run(
3963 'TitleGetRestrictionTypes',
3964 [ $title, &$types ]
3965 );
3966 }
3967
3968 public function onTitleIsAlwaysKnown( $title, &$isKnown ) {
3969 return $this->container->run(
3970 'TitleIsAlwaysKnown',
3971 [ $title, &$isKnown ]
3972 );
3973 }
3974
3975 public function onTitleIsMovable( $title, &$result ) {
3976 return $this->container->run(
3977 'TitleIsMovable',
3978 [ $title, &$result ]
3979 );
3980 }
3981
3982 public function onTitleMove( $old, $nt, $user, $reason, &$status ) {
3983 return $this->container->run(
3984 'TitleMove',
3985 [ $old, $nt, $user, $reason, &$status ]
3986 );
3987 }
3988
3989 public function onTitleMoveComplete( $old, $nt, $user, $pageid, $redirid,
3990 $reason, $revision
3991 ) {
3992 return $this->container->run(
3993 'TitleMoveComplete',
3994 [ $old, $nt, $user, $pageid, $redirid, $reason, $revision ]
3995 );
3996 }
3997
3998 public function onTitleMoveCompleting( $old, $nt, $user, $pageid, $redirid,
3999 $reason, $revision
4000 ) {
4001 return $this->container->run(
4002 'TitleMoveCompleting',
4003 [ $old, $nt, $user, $pageid, $redirid, $reason, $revision ]
4004 );
4005 }
4006
4007 public function onTitleMoveStarting( $old, $nt, $user ) {
4008 return $this->container->run(
4009 'TitleMoveStarting',
4010 [ $old, $nt, $user ]
4011 );
4012 }
4013
4014 public function onTitleQuickPermissions( $title, $user, $action, &$errors,
4015 $doExpensiveQueries, $short
4016 ) {
4017 return $this->container->run(
4018 'TitleQuickPermissions',
4019 [ $title, $user, $action, &$errors, $doExpensiveQueries, $short ]
4020 );
4021 }
4022
4023 public function onTitleReadWhitelist( $title, $user, &$whitelisted ) {
4024 return $this->container->run(
4025 'TitleReadWhitelist',
4026 [ $title, $user, &$whitelisted ]
4027 );
4028 }
4029
4030 public function onTitleSquidURLs( $title, &$urls ) {
4031 return $this->container->run(
4032 'TitleSquidURLs',
4033 [ $title, &$urls ]
4034 );
4035 }
4036
4037 public function onUnblockUser( $block, $user, &$reason ) {
4038 return $this->container->run(
4039 'UnblockUser',
4040 [ $block, $user, &$reason ]
4041 );
4042 }
4043
4044 public function onUnblockUserComplete( $block, $user ) {
4045 return $this->container->run(
4046 'UnblockUserComplete',
4047 [ $block, $user ]
4048 );
4049 }
4050
4051 public function onUndeleteForm__showHistory( &$archive, $title ) {
4052 return $this->container->run(
4053 'UndeleteForm::showHistory',
4054 [ &$archive, $title ]
4055 );
4056 }
4057
4058 public function onUndeleteForm__showRevision( &$archive, $title ) {
4059 return $this->container->run(
4060 'UndeleteForm::showRevision',
4061 [ &$archive, $title ]
4062 );
4063 }
4064
4065 public function onUndeleteForm__undelete( &$archive, $title ) {
4066 return $this->container->run(
4067 'UndeleteForm::undelete',
4068 [ &$archive, $title ]
4069 );
4070 }
4071
4072 public function onUndeletePageToolLinks( $context, $linkRenderer, &$links ) {
4073 return $this->container->run(
4074 'UndeletePageToolLinks',
4075 [ $context, $linkRenderer, &$links ]
4076 );
4077 }
4078
4079 public function onUndeleteShowRevision( $title, $rev ) {
4080 return $this->container->run(
4081 'UndeleteShowRevision',
4082 [ $title, $rev ]
4083 );
4084 }
4085
4086 public function onUnitTestsAfterDatabaseSetup( $database, $prefix ) {
4087 return $this->container->run(
4088 'UnitTestsAfterDatabaseSetup',
4089 [ $database, $prefix ]
4090 );
4091 }
4092
4094 return $this->container->run(
4095 'UnitTestsBeforeDatabaseTeardown',
4096 []
4097 );
4098 }
4099
4100 public function onUnitTestsList( &$paths ) {
4101 return $this->container->run(
4102 'UnitTestsList',
4103 [ &$paths ]
4104 );
4105 }
4106
4107 public function onUnwatchArticle( $user, $page, &$status ) {
4108 return $this->container->run(
4109 'UnwatchArticle',
4110 [ $user, $page, &$status ]
4111 );
4112 }
4113
4114 public function onUnwatchArticleComplete( $user, $page ) {
4115 return $this->container->run(
4116 'UnwatchArticleComplete',
4117 [ $user, $page ]
4118 );
4119 }
4120
4121 public function onUpdateUserMailerFormattedPageStatus( &$formattedPageStatus ) {
4122 return $this->container->run(
4123 'UpdateUserMailerFormattedPageStatus',
4124 [ &$formattedPageStatus ]
4125 );
4126 }
4127
4128 public function onUploadComplete( $uploadBase ) {
4129 return $this->container->run(
4130 'UploadComplete',
4131 [ $uploadBase ]
4132 );
4133 }
4134
4135 public function onUploadCreateFromRequest( $type, &$className ) {
4136 return $this->container->run(
4137 'UploadCreateFromRequest',
4138 [ $type, &$className ]
4139 );
4140 }
4141
4142 public function onUploadFormInitDescriptor( &$descriptor ) {
4143 return $this->container->run(
4144 'UploadFormInitDescriptor',
4145 [ &$descriptor ]
4146 );
4147 }
4148
4149 public function onUploadFormSourceDescriptors( &$descriptor, &$radio,
4150 $selectedSourceType
4151 ) {
4152 return $this->container->run(
4153 'UploadFormSourceDescriptors',
4154 [ &$descriptor, &$radio, $selectedSourceType ]
4155 );
4156 }
4157
4158 public function onUploadForm_BeforeProcessing( $upload ) {
4159 return $this->container->run(
4160 'UploadForm:BeforeProcessing',
4161 [ $upload ]
4162 );
4163 }
4164
4165 public function onUploadForm_getInitialPageText( &$pageText, $msg, $config ) {
4166 return $this->container->run(
4167 'UploadForm:getInitialPageText',
4168 [ &$pageText, $msg, $config ]
4169 );
4170 }
4171
4172 public function onUploadForm_initial( $upload ) {
4173 return $this->container->run(
4174 'UploadForm:initial',
4175 [ $upload ]
4176 );
4177 }
4178
4179 public function onUploadStashFile( $upload, $user, $props, &$error ) {
4180 return $this->container->run(
4181 'UploadStashFile',
4182 [ $upload, $user, $props, &$error ]
4183 );
4184 }
4185
4186 public function onUploadVerifyFile( $upload, $mime, &$error ) {
4187 return $this->container->run(
4188 'UploadVerifyFile',
4189 [ $upload, $mime, &$error ]
4190 );
4191 }
4192
4193 public function onUploadVerifyUpload( $upload, $user, $props, $comment,
4194 $pageText, &$error
4195 ) {
4196 return $this->container->run(
4197 'UploadVerifyUpload',
4198 [ $upload, $user, $props, $comment, $pageText, &$error ]
4199 );
4200 }
4201
4202 public function onUserAddGroup( $user, &$group, &$expiry ) {
4203 return $this->container->run(
4204 'UserAddGroup',
4205 [ $user, &$group, &$expiry ]
4206 );
4207 }
4208
4209 public function onUserArrayFromResult( &$userArray, $res ) {
4210 return $this->container->run(
4211 'UserArrayFromResult',
4212 [ &$userArray, $res ]
4213 );
4214 }
4215
4216 public function onUserCan( $title, $user, $action, &$result ) {
4217 return $this->container->run(
4218 'userCan',
4219 [ $title, $user, $action, &$result ]
4220 );
4221 }
4222
4223 public function onUserCanSendEmail( $user, &$canSend ) {
4224 return $this->container->run(
4225 'UserCanSendEmail',
4226 [ $user, &$canSend ]
4227 );
4228 }
4229
4230 public function onUserClearNewTalkNotification( $userIdentity, $oldid ) {
4231 return $this->container->run(
4232 'UserClearNewTalkNotification',
4233 [ $userIdentity, $oldid ]
4234 );
4235 }
4236
4237 public function onUserEffectiveGroups( $user, &$groups ) {
4238 return $this->container->run(
4239 'UserEffectiveGroups',
4240 [ $user, &$groups ]
4241 );
4242 }
4243
4244 public function onUserGetAllRights( &$rights ) {
4245 return $this->container->run(
4246 'UserGetAllRights',
4247 [ &$rights ]
4248 );
4249 }
4250
4251 public function onUserGetDefaultOptions( &$defaultOptions ) {
4252 return $this->container->run(
4253 'UserGetDefaultOptions',
4254 [ &$defaultOptions ]
4255 );
4256 }
4257
4258 public function onUserGetEmail( $user, &$email ) {
4259 return $this->container->run(
4260 'UserGetEmail',
4261 [ $user, &$email ]
4262 );
4263 }
4264
4265 public function onUserGetEmailAuthenticationTimestamp( $user, &$timestamp ) {
4266 return $this->container->run(
4267 'UserGetEmailAuthenticationTimestamp',
4268 [ $user, &$timestamp ]
4269 );
4270 }
4271
4272 public function onUserGetLanguageObject( $user, &$code, $context ) {
4273 return $this->container->run(
4274 'UserGetLanguageObject',
4275 [ $user, &$code, $context ]
4276 );
4277 }
4278
4279 public function onUserGetReservedNames( &$reservedUsernames ) {
4280 return $this->container->run(
4281 'UserGetReservedNames',
4282 [ &$reservedUsernames ]
4283 );
4284 }
4285
4286 public function onUserGetRights( $user, &$rights ) {
4287 return $this->container->run(
4288 'UserGetRights',
4289 [ $user, &$rights ]
4290 );
4291 }
4292
4293 public function onUserGetRightsRemove( $user, &$rights ) {
4294 return $this->container->run(
4295 'UserGetRightsRemove',
4296 [ $user, &$rights ]
4297 );
4298 }
4299
4300 public function onUserGroupsChanged( $user, $added, $removed, $performer,
4301 $reason, $oldUGMs, $newUGMs
4302 ) {
4303 return $this->container->run(
4304 'UserGroupsChanged',
4305 [ $user, $added, $removed, $performer, $reason, $oldUGMs,
4306 $newUGMs ]
4307 );
4308 }
4309
4310 public function onUserIsBlockedFrom( $user, $title, &$blocked, &$allowUsertalk ) {
4311 return $this->container->run(
4312 'UserIsBlockedFrom',
4313 [ $user, $title, &$blocked, &$allowUsertalk ]
4314 );
4315 }
4316
4317 public function onUserIsBlockedGlobally( $user, $ip, &$blocked, &$block ) {
4318 return $this->container->run(
4319 'UserIsBlockedGlobally',
4320 [ $user, $ip, &$blocked, &$block ]
4321 );
4322 }
4323
4324 public function onUserIsBot( $user, &$isBot ) {
4325 return $this->container->run(
4326 'UserIsBot',
4327 [ $user, &$isBot ]
4328 );
4329 }
4330
4331 public function onUserIsEveryoneAllowed( $right ) {
4332 return $this->container->run(
4333 'UserIsEveryoneAllowed',
4334 [ $right ]
4335 );
4336 }
4337
4338 public function onUserIsLocked( $user, &$locked ) {
4339 return $this->container->run(
4340 'UserIsLocked',
4341 [ $user, &$locked ]
4342 );
4343 }
4344
4345 public function onUserLoadAfterLoadFromSession( $user ) {
4346 return $this->container->run(
4347 'UserLoadAfterLoadFromSession',
4348 [ $user ]
4349 );
4350 }
4351
4352 public function onUserLoadDefaults( $user, $name ) {
4353 return $this->container->run(
4354 'UserLoadDefaults',
4355 [ $user, $name ]
4356 );
4357 }
4358
4359 public function onUserLoadFromDatabase( $user, &$s ) {
4360 return $this->container->run(
4361 'UserLoadFromDatabase',
4362 [ $user, &$s ]
4363 );
4364 }
4365
4366 public function onUserLoadOptions( $user, &$options ) {
4367 return $this->container->run(
4368 'UserLoadOptions',
4369 [ $user, &$options ]
4370 );
4371 }
4372
4373 public function onUserLoggedIn( $user ) {
4374 return $this->container->run(
4375 'UserLoggedIn',
4376 [ $user ]
4377 );
4378 }
4379
4380 public function onUserLoginComplete( $user, &$inject_html, $direct ) {
4381 return $this->container->run(
4382 'UserLoginComplete',
4383 [ $user, &$inject_html, $direct ]
4384 );
4385 }
4386
4387 public function onUserLogout( $user ) {
4388 return $this->container->run(
4389 'UserLogout',
4390 [ $user ]
4391 );
4392 }
4393
4394 public function onUserLogoutComplete( $user, &$inject_html, $oldName ) {
4395 return $this->container->run(
4396 'UserLogoutComplete',
4397 [ $user, &$inject_html, $oldName ]
4398 );
4399 }
4400
4401 public function onUserMailerChangeReturnPath( $to, &$returnPath ) {
4402 return $this->container->run(
4403 'UserMailerChangeReturnPath',
4404 [ $to, &$returnPath ]
4405 );
4406 }
4407
4408 public function onUserMailerSplitTo( &$to ) {
4409 return $this->container->run(
4410 'UserMailerSplitTo',
4411 [ &$to ]
4412 );
4413 }
4414
4415 public function onUserMailerTransformContent( $to, $from, &$body, &$error ) {
4416 return $this->container->run(
4417 'UserMailerTransformContent',
4418 [ $to, $from, &$body, &$error ]
4419 );
4420 }
4421
4422 public function onUserMailerTransformMessage( $to, $from, &$subject, &$headers,
4423 &$body, &$error
4424 ) {
4425 return $this->container->run(
4426 'UserMailerTransformMessage',
4427 [ $to, $from, &$subject, &$headers, &$body, &$error ]
4428 );
4429 }
4430
4431 public function onUserRemoveGroup( $user, &$group ) {
4432 return $this->container->run(
4433 'UserRemoveGroup',
4434 [ $user, &$group ]
4435 );
4436 }
4437
4438 public function onUserRequiresHTTPS( $user, &$https ) {
4439 return $this->container->run(
4440 'UserRequiresHTTPS',
4441 [ $user, &$https ]
4442 );
4443 }
4444
4445 public function onUserResetAllOptions( $user, &$newOptions, $options,
4446 $resetKinds
4447 ) {
4448 return $this->container->run(
4449 'UserResetAllOptions',
4450 [ $user, &$newOptions, $options, $resetKinds ]
4451 );
4452 }
4453
4454 public function onUserRetrieveNewTalks( $user, &$talks ) {
4455 return $this->container->run(
4456 'UserRetrieveNewTalks',
4457 [ $user, &$talks ]
4458 );
4459 }
4460
4461 public function onUserSaveOptions( $user, &$options, $originalOptions ) {
4462 return $this->container->run(
4463 'UserSaveOptions',
4464 [ $user, &$options, $originalOptions ]
4465 );
4466 }
4467
4468 public function onUserSaveSettings( $user ) {
4469 return $this->container->run(
4470 'UserSaveSettings',
4471 [ $user ]
4472 );
4473 }
4474
4475 public function onUserSendConfirmationMail( $user, &$mail, $info ) {
4476 return $this->container->run(
4477 'UserSendConfirmationMail',
4478 [ $user, &$mail, $info ]
4479 );
4480 }
4481
4482 public function onUserSetCookies( $user, &$session, &$cookies ) {
4483 return $this->container->run(
4484 'UserSetCookies',
4485 [ $user, &$session, &$cookies ]
4486 );
4487 }
4488
4489 public function onUserSetEmail( $user, &$email ) {
4490 return $this->container->run(
4491 'UserSetEmail',
4492 [ $user, &$email ]
4493 );
4494 }
4495
4496 public function onUserSetEmailAuthenticationTimestamp( $user, &$timestamp ) {
4497 return $this->container->run(
4498 'UserSetEmailAuthenticationTimestamp',
4499 [ $user, &$timestamp ]
4500 );
4501 }
4502
4503 public function onUsersPagerDoBatchLookups( $dbr, $userIds, &$cache, &$groups ) {
4504 return $this->container->run(
4505 'UsersPagerDoBatchLookups',
4506 [ $dbr, $userIds, &$cache, &$groups ]
4507 );
4508 }
4509
4510 public function onUserToolLinksEdit( $userId, $userText, &$items ) {
4511 return $this->container->run(
4512 'UserToolLinksEdit',
4513 [ $userId, $userText, &$items ]
4514 );
4515 }
4516
4517 public function onUser__mailPasswordInternal( $user, $ip, $u ) {
4518 return $this->container->run(
4519 'User::mailPasswordInternal',
4520 [ $user, $ip, $u ]
4521 );
4522 }
4523
4524 public function onValidateExtendedMetadataCache( $timestamp, $file ) {
4525 return $this->container->run(
4526 'ValidateExtendedMetadataCache',
4527 [ $timestamp, $file ]
4528 );
4529 }
4530
4531 public function onWantedPages__getQueryInfo( $wantedPages, &$query ) {
4532 return $this->container->run(
4533 'WantedPages::getQueryInfo',
4534 [ $wantedPages, &$query ]
4535 );
4536 }
4537
4538 public function onWatchArticle( $user, $page, &$status, $expiry ) {
4539 return $this->container->run(
4540 'WatchArticle',
4541 [ $user, $page, &$status, $expiry ]
4542 );
4543 }
4544
4545 public function onWatchArticleComplete( $user, $page ) {
4546 return $this->container->run(
4547 'WatchArticleComplete',
4548 [ $user, $page ]
4549 );
4550 }
4551
4552 public function onWatchedItemQueryServiceExtensions( &$extensions,
4553 $watchedItemQueryService
4554 ) {
4555 return $this->container->run(
4556 'WatchedItemQueryServiceExtensions',
4557 [ &$extensions, $watchedItemQueryService ]
4558 );
4559 }
4560
4561 public function onWatchlistEditorBeforeFormRender( &$watchlistInfo ) {
4562 return $this->container->run(
4563 'WatchlistEditorBeforeFormRender',
4564 [ &$watchlistInfo ]
4565 );
4566 }
4567
4568 public function onWatchlistEditorBuildRemoveLine( &$tools, $title, $redirect,
4569 $skin, &$link
4570 ) {
4571 return $this->container->run(
4572 'WatchlistEditorBuildRemoveLine',
4573 [ &$tools, $title, $redirect, $skin, &$link ]
4574 );
4575 }
4576
4577 public function onWebRequestPathInfoRouter( $router ) {
4578 return $this->container->run(
4579 'WebRequestPathInfoRouter',
4580 [ $router ]
4581 );
4582 }
4583
4584 public function onWebResponseSetCookie( &$name, &$value, &$expire, &$options ) {
4585 return $this->container->run(
4586 'WebResponseSetCookie',
4587 [ &$name, &$value, &$expire, &$options ]
4588 );
4589 }
4590
4591 public function onWfShellWikiCmd( &$script, &$parameters, &$options ) {
4592 return $this->container->run(
4593 'wfShellWikiCmd',
4594 [ &$script, &$parameters, &$options ]
4595 );
4596 }
4597
4598 public function onWgQueryPages( &$qp ) {
4599 return $this->container->run(
4600 'wgQueryPages',
4601 [ &$qp ]
4602 );
4603 }
4604
4605 public function onWhatLinksHereProps( $row, $title, $target, &$props ) {
4606 return $this->container->run(
4607 'WhatLinksHereProps',
4608 [ $row, $title, $target, &$props ]
4609 );
4610 }
4611
4612 public function onWikiExporter__dumpStableQuery( &$tables, &$opts, &$join ) {
4613 return $this->container->run(
4614 'WikiExporter::dumpStableQuery',
4615 [ &$tables, &$opts, &$join ]
4616 );
4617 }
4618
4619 public function onWikiPageDeletionUpdates( $page, $content, &$updates ) {
4620 return $this->container->run(
4621 'WikiPageDeletionUpdates',
4622 [ $page, $content, &$updates ]
4623 );
4624 }
4625
4626 public function onWikiPageFactory( $title, &$page ) {
4627 return $this->container->run(
4628 'WikiPageFactory',
4629 [ $title, &$page ]
4630 );
4631 }
4632
4633 public function onXmlDumpWriterOpenPage( $obj, &$out, $row, $title ) {
4634 return $this->container->run(
4635 'XmlDumpWriterOpenPage',
4636 [ $obj, &$out, $row, $title ]
4637 );
4638 }
4639
4640 public function onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text, $rev ) {
4641 return $this->container->run(
4642 'XmlDumpWriterWriteRevision',
4643 [ $obj, &$out, $row, $text, $rev ]
4644 );
4645 }
4646}
$magicWords
This class provides an implementation of the core hook interfaces, forwarding hook calls to HookConta...
onLanguage__getMessagesFileName( $code, &$file)
Use this hook to change the path of a localisation file.
onArticleProtectComplete( $wikiPage, $user, $protect, $reason)
This hook is called after an article is protected.
onLanguageLinks( $title, &$links, &$linkFlags)
Use this hook to manipulate a page's language links.
onPageContentInsertComplete( $wikiPage, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $revision)
This hook is called after a new article is created.
onUserSetEmail( $user, &$email)
This hook is called when changing user email address.
onPreferencesGetLegend( $form, $key, &$legend)
Use the hook to override the text used for the <legend> of a preferences section.
onMarkPatrolled( $rcid, $user, $wcOnlySysopsCanPatrol, $auto, &$tags)
This hook is called before an edit is marked patrolled.
onSkinSubPageSubtitle(&$subpages, $skin, $out)
This hook is called at the beginning of Skin::subPageSubtitle().
onImportSources(&$importSources)
This hook is called when reading from the $wgImportSources configuration variable.
onDifferenceEngineRenderRevisionShowFinalPatrolLink()
Use this hook to not show the final "mark as patrolled" link on the bottom of a page.
onContentHandlerForModelID( $modeName, &$handler)
This hook is called when a ContentHandler is requested for a given content model name,...
onAbortAutoblock( $autoblockip, $block)
Use this hook to cancel an autoblock.
onUnitTestsList(&$paths)
This hook is called when building a list of paths containing PHPUnit tests.
onAfterBuildFeedLinks(&$feedLinks)
This hook is called in OutputPage.php after all feed links (atom, rss,...) are created.
onAlternateUserMailer( $headers, $to, $from, $subject, $body)
This hook is called before mail is sent so that mail could be logged (or something else) instead of u...
onMovePageIsValidMove( $oldTitle, $newTitle, $status)
Use this hook to specify whether a page can be moved for technical reasons.
onArticleRevisionViewCustom( $revision, $title, $oldid, $output)
Use this hook for custom rendering of an article's content.
onEnhancedChangesList__getLogText( $changesList, &$links, $block)
Use this hook to alter, remove, or add to the links of a group of changes in EnhancedChangesList.
onGetSlotDiffRenderer( $contentHandler, &$slotDiffRenderer, $context)
Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
onSkinAddFooterLinks(Skin $skin, string $key, array &$footerItems)
This hook is called when generating the code used to display the footer.
onEditPageTosSummary( $title, &$msg)
Use this hook for site and per-namespace customizations of terms of service summary link that might e...
onUserSendConfirmationMail( $user, &$mail, $info)
This hook is called just before a confirmation email is sent to a user.
onTestCanonicalRedirect( $request, $title, $output)
This hook is called when about to force a redirect to a canonical URL for a title when we have no oth...
onAuthManagerLoginAuthenticateAudit( $response, $user, $username, $extraData)
This hook is called when a login attempt either succeeds or fails for a reason other than misconfigur...
onSessionCheckInfo(&$reason, $info, $request, $metadata, $data)
Use this hook to validate a MediaWiki\Session\SessionInfo as it's being loaded from storage.
onDifferenceEngineShowDiffPageMaybeShowMissingRevision( $differenceEngine)
This hook is called in DifferenceEngine::showDiffPage() when revision data cannot be loaded.
onParserMakeImageParams( $title, $file, &$params, $parser)
This hook is called before the parser generates an image link, use this to modify the parameters of t...
onSkinAfterBottomScripts( $skin, &$text)
This hook is called at the end of Skin::bottomScripts().
onSpecialContributions__formatRow__flags( $context, $row, &$flags)
This hook is called before rendering a Special:Contributions row.
onSkinTemplateOutputPageBeforeExec( $sktemplate, $tpl)
This hook is called before SkinTemplate::outputPage() starts page output.
onLanguageSelector( $out, $cssClassName)
Use this hook to change the language selector available on a page.
onImportHandleRevisionXMLTag( $reader, $pageInfo, $revisionInfo)
This hook is called when parsing an XML tag in a page revision.
onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text, $rev)
This hook is called at the end of a revision in an XML dump, to add extra metadata.
onAbortDiffCache( $diffEngine)
Use this hook to cancel the caching of a diff.
onSkinPageReadyConfig(ResourceLoaderContext $context, array &$config)
Allows skins to change the mediawiki.page.ready module configuration.
onAfterFinalPageOutput( $output)
This hook is called nearly at the end of OutputPage::output() but before OutputPage::sendCacheControl...
onUnwatchArticle( $user, $page, &$status)
This hook is called before a watch is removed from an article.
onDifferenceEngineViewHeader( $differenceEngine)
This hook is called before diff display.
onTitleArrayFromResult(&$titleArray, $res)
This hook is called when creating a TitleArray object from a database result.
onEditPageBeforeEditButtons( $editpage, &$buttons, &$tabindex)
Use this hook to modify the edit buttons below the textarea in the edit form.
onLogEventsListShowLogExtract(&$s, $types, $page, $user, $param)
This hook is called before the string is added to OutputPage.
onSpecialContributions__getForm__filters( $sp, &$filters)
This hook is called with a list of filters to render on Special:Contributions.
onHistoryPageToolLinks( $context, $linkRenderer, &$links)
Use this hook to add one or more links to revision history page subtitle.
onPasswordPoliciesForUser( $user, &$effectivePolicy)
Use this hook to alter the effective password policy for a user.
onImportHandleLogItemXMLTag( $reader, $logInfo)
This hook is called when parsing an XML tag in a log item.
onTitleMoveCompleting( $old, $nt, $user, $pageid, $redirid, $reason, $revision)
This hook is called after moving an article (title), pre-commit.
onUserLoadFromDatabase( $user, &$s)
This hook is called when loading a user from the database.
onEditFormInitialText( $editPage)
Use this hook to modify the edit form when editing existing pages.
onGetLogTypesOnUser(&$types)
Use this hook to add log types where the target is a user page.
onChangeTagAfterDelete( $tag, &$status)
This hook is called after a change tag has been deleted (that is, removed from all revisions and log ...
onArticleEditUpdates( $wikiPage, $editInfo, $changed)
This hook is called when edit updates (mainly link tracking) are made when an article has been change...
onDiffTools( $newRevRecord, &$links, $oldRevRecord, $userIdentity)
Use this hook to override or extend the revision tools available from the diff view,...
onSpecialContributionsBeforeMainOutput( $id, $user, $sp)
This hook is called before the form on Special:Contributions.
onRevisionUndeleted( $revisionRecord, $oldPageID)
After an article revision is restored.
onImportHandlePageXMLTag( $reader, &$pageInfo)
This hook is called when parsing an XML tag in a page.
onArticleUndeleteLogEntry( $pageArchive, &$logEntry, $user)
This hook is called when a log entry is generated but not yet saved.
onParserClearState( $parser)
This hook is called at the end of Parser::clearState().
onSpecialPasswordResetOnSubmit(&$users, $data, &$error)
This hook is called when executing a form submission on Special:PasswordReset.
onParserFirstCallInit( $parser)
This hook is called when the parser initialises for the first time.
onProtectionForm__showLogExtract( $article, $out)
This hook is called after the protection log extract is shown.
onBeforeWelcomeCreation(&$welcome_creation_msg, &$injected_html)
This hook is called before the welcomecreation message is displayed to a newly created user.
onHtmlCacheUpdaterVaryUrls( $urls, &$append)
This hook is used to add variants of URLs to purge from HTTP caches.
onPageDeletionDataUpdates( $title, $revision, &$updates)
This hook is called when constructing a list of DeferrableUpdate to be executed when a page is delete...
onContribsPager__getQueryInfo( $pager, &$queryInfo)
This hook is called before the contributions query is about to run.
onEditPage__showReadOnlyForm_initial( $editor, $out)
This hook is similar to EditPage::showEditForm:initial but for the read-only 'view source' variant of...
onContentSecurityPolicyDirectives(&$directives, $policyConfig, $mode)
If ContentSecurityPolicyDefaultSource and ContentSecurityPolicyScriptSource do not meet your needs,...
onArticleEditUpdateNewTalk( $wikiPage, $recipient)
This hook is called before updating user_newtalk when a user talk page was changed.
onUndeleteForm__showHistory(&$archive, $title)
This hook is called in UndeleteForm::showHistory, after creating the PageArchive object.
onIsUploadAllowedFromUrl( $url, &$allowed)
Use this hook to override the result of UploadFromUrl::isAllowedUrl().
onSearchResultProvideDescription(array $pageIdentities, &$descriptions)
This hook is called when generating search results in order to fill the 'description' field in an ext...
onBeforeParserrenderImageGallery( $parser, $ig)
This hook is called before an image gallery is rendered by Parser.
onUser__mailPasswordInternal( $user, $ip, $u)
This hook is called before creation and mailing of a user's new temporary password.
onWhatLinksHereProps( $row, $title, $target, &$props)
Use this hook to add annotations to Special:WhatLinksHere.
onGetAutoPromoteGroups( $user, &$promote)
This hook is called when determining which autopromote groups a user is entitled to be in.
onGetMagicVariableIDs(&$variableIDs)
Use this hook to modify the list of magic variables.
onUserGetReservedNames(&$reservedUsernames)
Use this hook to modify $wgReservedUsernames at run time.
onSkinTemplateNavigation__Universal( $sktemplate, &$links)
This hook is called on both content and special pages after variants have been added.
onEditPageBeforeEditToolbar(&$toolbar)
Use this hook to add an edit toolbar above the textarea in the edit form.
onTitleMove( $old, $nt, $user, $reason, &$status)
This hook is called before moving an article (title).
onSpecialNewpagesConditions( $special, $opts, &$conds, &$tables, &$fields, &$join_conds)
This hook is called when building the SQL query for Special:NewPages.
onImgAuthModifyHeaders( $title, &$headers)
This hook is called just before a file is streamed to a user via img_auth.php, allowing headers to be...
onImageBeforeProduceHTML( $linker, &$title, &$file, &$frameParams, &$handlerParams, &$time, &$res, $parser, &$query, &$widthOption)
This hook is called before producing the HTML created by a wiki image insertion.
onInfoAction( $context, &$pageInfo)
This hook is called when building information to display on the action=info page.
onUserEffectiveGroups( $user, &$groups)
This hook is called in UserGroupManager::getUserEffectiveGroups().
onSearchGetNearMatch( $term, &$title)
Use this hook to perform exact-title-matches in "go" searches if nothing was found.
onMultiContentSave( $renderedRevision, $user, $summary, $flags, $status)
This hook is called before an article is saved.
onRecentChange_save( $recentChange)
This hook is called at the end of RecentChange::save().
onSearchIndexFields(&$fields, $engine)
Use this hook to add fields to search index mapping.
onOtherBlockLogLink(&$otherBlockLink, $ip)
Use this hook to add list items to a list of "other blocks" when viewing Special:BlockList.
onSpecialSearchCreateLink( $t, &$params)
This hook is called when making the message to create a page or go to the existing page.
onWatchlistEditorBuildRemoveLine(&$tools, $title, $redirect, $skin, &$link)
This hook is called when building remove lines in Special:Watchlist/edit.
onLinkerMakeExternalLink(&$url, &$text, &$link, &$attribs, $linkType)
This hook is called at the end of Linker::makeExternalLink() just before the return.
onIsValidEmailAddr( $addr, &$result)
Use this hook to override the result of Sanitizer::validateEmail(), for instance to return false if t...
onWatchArticle( $user, $page, &$status, $expiry)
This hook is called before a watch is added to an article.
onInternalParseBeforeLinks( $parser, &$text, $stripState)
This hook is called during Parser's internalParse method before links but after nowiki/noinclude/incl...
onSpecialTrackingCategories__preprocess( $specialPage, $trackingCategories)
This hook is called after LinkBatch on Special:TrackingCategories.
onManualLogEntryBeforePublish( $logEntry)
Use this hook to access or modify log entry just before it is published.
onDifferenceEngineNewHeader( $differenceEngine, &$newHeader, $formattedRevisionTools, $nextlink, $rollback, $newminor, $diffOnly, $rdel, $unhide)
Use this hook to change the $newHeader variable, which contains information about the new revision,...
onSpecialSearchProfileForm( $search, &$form, $profile, $term, $opts)
Use this hook to modify search profile forms.
onSearchGetNearMatchBefore( $allSearchTerms, &$titleResult)
Use this hook to perform exact-title-matches in "go" searches before the normal operations.
onHtmlCacheUpdaterAppendUrls( $title, $mode, &$append)
This hook is used to declare extra URLs to purge from HTTP caches.
onWebResponseSetCookie(&$name, &$value, &$expire, &$options)
This hook is called when setting a cookie in WebResponse::setcookie().
onUserLoadOptions( $user, &$options)
This hook is called when user options/preferences are being loaded from the database.
onUserCanSendEmail( $user, &$canSend)
Use this hook to override User::canSendEmail() permission check.
onHistoryTools( $revRecord, &$links, $prevRevRecord, $userIdentity)
Use this hook to override or extend the revision tools available from the page history view,...
onBeforeParserFetchFileAndTitle( $parser, $nt, &$options, &$descQuery)
This hook is called before an image is rendered by Parser.
onDifferenceEngineMarkPatrolledRCID(&$rcid, $differenceEngine, $change, $user)
Use this hook to possibly change the rcid parameter.
onParserCacheSaveComplete( $parserCache, $parserOutput, $title, $popts, $revId)
This hook is called after a ParserOutput has been committed to the parser cache.
onMovePageCheckPermissions( $oldTitle, $newTitle, $user, $reason, $status)
Use this hook to specify whether the user is allowed to move the page.
onWatchlistEditorBeforeFormRender(&$watchlistInfo)
This hook is called before building the Special:EditWatchlist form.
onUserGetAllRights(&$rights)
This hook is called after calculating a list of all available rights.
onSiteNoticeBefore(&$siteNotice, $skin)
This hook is called before the sitenotice/anonnotice is composed.
onImportHandleToplevelXMLTag( $reader)
This hook is called when parsing a top level XML tag.
onParserAfterStrip( $parser, &$text, $stripState)
This hook is called at end of parsing time.
onAlternateEditPreview( $editPage, &$content, &$previewHTML, &$parserOutput)
This hook is called before generating the preview of the page when editing ( EditPage::getPreviewText...
onAddNewAccount( $user, $byEmail)
This hook is called after a user account is created.
onArticleDelete( $wikiPage, $user, &$reason, &$error, &$status, $suppress)
This hook is called before an article is deleted.
onUserLogout( $user)
This hook is called before a user logs out.
onRejectParserCacheValue( $parserOutput, $wikiPage, $parserOptions)
Use this hook to reject an otherwise usable cached value from the Parser cache.
onTitleReadWhitelist( $title, $user, &$whitelisted)
This hook is called at the end of read permissions checks, just before adding the default error messa...
onIsFileCacheable( $article)
Use this hook to override the result of Article::isFileCacheable().
onPingLimiter( $user, $action, &$result, $incrBy)
Use this hook to override the results of User::pingLimiter().
onOutputPageParserOutput( $out, $parserOutput)
This hook is called after adding a parserOutput to $wgOut.
onLinksUpdateConstructed( $linksUpdate)
This hook is called at the end of LinksUpdate() is construction.
onMimeMagicInit( $mimeMagic)
This hook is called before processing the list mapping MIME types to media types and the list mapping...
onSpecialRecentChangesPanel(&$extraOpts, $opts)
This hook is called when building form options in SpecialRecentChanges.
onParserPreSaveTransformComplete( $parser, &$text)
This hook is called from Parser::preSaveTransform() after processing is complete, giving the extensio...
onImportHandleContentXMLTag( $reader, $contentInfo)
onTitleQuickPermissions( $title, $user, $action, &$errors, $doExpensiveQueries, $short)
This hook is called from Title::checkQuickPermissions to add to or override the quick permissions che...
onArticleEditUpdatesDeleteFromRecentchanges( $wikiPage)
This hook is called before deleting old entries from recentchanges table.
onDifferenceEngineShowEmptyOldContent( $differenceEngine)
Use this hook to change the diff table body (without header) in cases when there is no old revision o...
onBlockIpComplete( $block, $user, $priorBlock)
This hook is called after an IP address or user is blocked.
onProtectionForm__buildForm( $article, &$output)
This hook is called after all protection type fieldsets are made in the form.
onUsersPagerDoBatchLookups( $dbr, $userIds, &$cache, &$groups)
This hook is called called in UsersPager::doBatchLookups()
onPageSaveComplete( $wikiPage, $user, $summary, $flags, $revisionRecord, $editResult)
This hook is called after an article has been updated.
onGetLocalURL__Article( $title, &$url)
Use this hook to modify local URLs specifically pointing to article paths without any fancy queries o...
onShortPagesQuery(&$tables, &$conds, &$joinConds, &$options)
Use this hook to modify the query used by Special:ShortPages.
onFileUndeleteComplete( $title, $fileVersions, $user, $reason)
This hook is called when a file is undeleted.
onWatchArticleComplete( $user, $page)
This hook is called after a watch is added to an article.
onOtherAutoblockLogLink(&$otherBlockLink)
Use this hook to add list items to a list of "other autoblocks" which appears at the end of Special:A...
onEditFilter( $editor, $text, $section, &$error, $summary)
Use this hook to perform checks on an edit.
onEditPage__showStandardInputs_options( $editor, $out, &$tabindex)
Use this hook to inject form fields into the editOptions area.
onGetCanonicalURL( $title, &$url, $query)
Use this hook to modify fully-qualified URLs used for IRC and email notifications.
onSendWatchlistEmailNotification( $targetUser, $title, $enotif)
Use this hook to cancel watchlist email notifications (enotifwatchlist) for an edit.
onArticle__MissingArticleConditions(&$conds, $logTypes)
This hook is called before fetching deletion and move log entries to display a message of a non-exist...
onSidebarBeforeOutput( $skin, &$sidebar)
Use this hook to edit the sidebar just before it is output by skins.
onDifferenceEngineLoadTextAfterNewContentIsLoaded( $differenceEngine)
This hook is called in DifferenceEngine::loadText() after the new revision's content has been loaded ...
onParserAfterParse( $parser, &$text, $stripState)
This hook is called from Parser::parse() just after the call to Parser::internalParse() returns.
onGetLangPreferredVariant(&$req)
This hook is called in LanguageConverter::getPreferredVariant() to allow fetching the language varian...
onSpecialPageAfterExecute( $special, $subPage)
This hook is called after SpecialPage::execute.
onGetPreferences( $user, &$preferences)
Use this hook to modify user preferences.
onResourceLoaderGetConfigVars(array &$vars, $skin, Config $config)
Export static site-wide mw.config variables to JavaScript.
onTitleSquidURLs( $title, &$urls)
This hook is called to determine which URLs to purge from HTTP caches.
onGetIP(&$ip)
Use this hook to modify the IP of the current user (called only once).
onMaintenanceRefreshLinksInit( $refreshLinks)
This hook is called before executing the refreshLinks.php maintenance script.
onEditPageCopyrightWarning( $title, &$msg)
Use this hook for site and per-namespace customization of contribution/copyright notice.
onLinkerMakeMediaLinkFile( $title, $file, &$html, &$attribs, &$ret)
This hook is called at the end of Linker::makeMediaLinkFile() just before the return.
onMediaWikiPHPUnitTest__startTest( $test)
This hook is called before each PHPUnit test starts.
onPerformRetroactiveAutoblock( $block, &$blockIds)
This hook is called before a retroactive autoblock is applied to a user.
onSiteNoticeAfter(&$siteNotice, $skin)
This hook is called after the sitenotice/anonnotice is composed.
onLocalFilePurgeThumbnails( $file, $archiveName, $urls)
This hook is called before thumbnails for a local file are purged.
onChangeTagCanDelete( $tag, $user, &$status)
Use this hook to tell whether a change tag should be able to be deleted from the UI (Special:Tags) or...
onPageHistoryPager__doBatchLookups( $pager, $result)
This hook is called after the pager query was run, before any output is generated,...
onContentModelCanBeUsedOn( $contentModel, $title, &$ok)
Use this hook to determine whether a content model can be used on a given page.
onGetUserBlock( $user, $ip, &$block)
Use this hook to modify the block found by the block manager.
onBeforeResetNotificationTimestamp(&$userObj, &$titleObj, $force, &$oldid)
This hook is called before the notification timestamp of a watched item is reset.
onUploadFormSourceDescriptors(&$descriptor, &$radio, $selectedSourceType)
This hook is called after the standard source inputs have been added to the descriptor.
onArticleConfirmDelete( $article, $output, &$reason)
This hook is called before writing the confirmation form for article deletion.
onSpecialListusersQueryInfo( $pager, &$query)
This hook is called right before the end of UsersPager::getQueryInfo()
onLoadExtensionSchemaUpdates( $updater)
This hook is called during database installation and updates.
onInitializeArticleMaybeRedirect( $title, $request, &$ignoreRedirect, &$target, &$article)
Use this hook to check whether a title is a redirect.
onSpecialSearchPowerBox(&$showSections, $term, &$opts)
Use this hook to modify advanced search profile forms.
onSkinTemplateNavigation__SpecialPage( $sktemplate, &$links)
This hook is called on special pages after the special tab is added but before variants have been add...
onLogException( $e, $suppressed)
This hook is called before an exception (or PHP error) is logged.
onRedirectSpecialArticleRedirectParams(&$redirectParams)
Use this hook to alter the set of parameter names such as "oldid" that are preserved when using redir...
onLogEventsListLineEnding( $page, &$ret, $entry, &$classes, &$attribs)
This hook is called before a Special:Log line is finished.
onUnblockUser( $block, $user, &$reason)
This hook is called before an IP address or user is unblocked.
onBaseTemplateToolbox( $sk, &$toolbox)
This hook is called by BaseTemplate when building the $toolbox array and returning it for the skin to...
onDiffViewHeader( $diff, $oldRev, $newRev)
This hook is called before diff display.
onMediaWikiServices( $services)
This hook is called when a global MediaWikiServices instance is initialized.
onMediaWikiPerformAction( $output, $article, $title, $user, $request, $mediaWiki)
Use this hook to override MediaWiki::performAction().
onTitleGetRestrictionTypes( $title, &$types)
Use this hook to modify the types of protection that can be applied.
onOutputPageMakeCategoryLinks( $out, $categories, &$links)
This hook is called when links are about to be generated for the page's categories.
onParserGetVariableValueTs( $parser, &$time)
Use this hook to change the value of the time for the {{LOCAL...}} magic word.
onParserOptionsRegister(&$defaults, &$inCacheKey, &$lazyLoad)
Use this hook to register additional parser options.
onEditPage__importFormData( $editpage, $request)
Use this hook to read additional data posted in the form.
onBeforePageDisplay( $out, $skin)
This hook is called prior to outputting a page.
onUserLoginComplete( $user, &$inject_html, $direct)
Use this hook to show custom content after a user has logged in via the web interface.
onParserLimitReportFormat( $key, &$value, &$report, $isHTML, $localize)
This hook is called for each row in the parser limit report that needs formatting.
onIRCLineURL(&$url, &$query, $rc)
This hook is called when constructing the URL to use in an IRC notification.
onParserAfterTidy( $parser, &$text)
This hook is called after Parser::tidy() in Parser::parse().
onPageMoveCompleting( $old, $new, $user, $pageid, $redirid, $reason, $revision)
This hook is called after moving an article (title), pre-commit.
onContentSecurityPolicyDefaultSource(&$defaultSrc, $policyConfig, $mode)
Use this hook to modify the allowed CSP load sources.
onSecuritySensitiveOperationStatus(&$status, $operation, $session, $timeSinceAuth)
Use this hook to affect the return value from MediaWiki\Auth\AuthManager::securitySensitiveOperationS...
onSkinEditSectionLinks( $skin, $title, $section, $tooltip, &$result, $lang)
Use this hook to modify section edit links.
onSpecialResetTokensTokens(&$tokens)
This hook is called when building token list for SpecialResetTokens.
onImagePageFileHistoryLine( $imageHistoryList, $file, &$line, &$css)
This hook is called when a file history line is constructed.
onParserBeforePreprocess( $parser, &$text, $stripState)
Called at the beginning of Parser::preprocess()
onImportLogInterwikiLink(&$fullInterwikiPrefix, &$pageTitle)
Use this hook to change interwiki links in log entries and edit summaries for transwiki imports.
onParserOutputPostCacheTransform( $parserOutput, &$text, &$options)
This hook is called from ParserOutput::getText() to do post-cache transforms.
onUserGetEmailAuthenticationTimestamp( $user, &$timestamp)
This hook is called when getting the timestamp of email authentication.
onSelfLinkBegin( $nt, &$html, &$trail, &$prefix, &$ret)
This hook is called before a link to the current article is displayed to allow the display of the lin...
onCollation__factory( $collationName, &$collationObject)
This hook is called if $wgCategoryCollation is an unknown collation.
onSearchResultsAugment(&$setAugmentors, &$rowAugmentors)
Use this hook to add code to the list of search result augmentors.
onArticleFromTitle( $title, &$article, $context)
This hook is called when creating an article object from a title object using Wiki::articleFromTitle(...
onGetDifferenceEngine( $context, $old, $new, $refreshCache, $unhide, &$differenceEngine)
This hook is called when getting a new difference engine interface object.
onLinksUpdate( $linksUpdate)
This hook is called at the beginning of LinksUpdate::doUpdate() just before the actual update.
onLogEventsListGetExtraInputs( $type, $logEventsList, &$input, &$formDescriptor)
This hook is called when getting extra inputs to display on Special:Log for a specific log type.
onUnitTestsAfterDatabaseSetup( $database, $prefix)
This hook is called right after MediaWiki's test infrastructure has finished creating/duplicating cor...
onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink( $sktemplate, &$nav_urls, &$revid, &$revid2)
This hook is called after creating the "permanent link" tab.
onContribsPager__reallyDoQuery(&$data, $pager, $offset, $limit, $descending)
This hook is called before really executing the query for My Contributions.
onExemptFromAccountCreationThrottle( $ip)
Use this hook to add an exemption from the account creation throttle.
onUndeleteForm__showRevision(&$archive, $title)
This hook is called in UndeleteForm::showRevision, after creating a PageArchive object.
onActionBeforeFormDisplay( $name, $form, $article)
This hook is called before executing the HTMLForm object.
onArticleViewRedirect( $article)
This hook is called before setting "Redirected from ..." subtitle when a redirect was followed.
onGetContentModels(&$models)
Use this hook to add content models to the list of available models.
onFormatAutocomments(&$comment, $pre, $auto, $post, $title, $local, $wikiId)
This hook is called when an autocomment is formatted by the Linker.
onChangesListInitRows( $changesList, $rows)
Use this hook to batch process change list rows prior to rendering.
onUserGetRights( $user, &$rights)
This hook is called in User::getRights().
onRevisionFromEditComplete( $wikiPage, $rev, $originalRevId, $user, &$tags)
This hook is called when a revision was inserted due to an edit, file upload, import or page move.
onImageOpenShowImageInlineBefore( $imagePage, $output)
This hook is called just before showing the image on an image page.
onProtectionForm__save( $article, &$errorMsg, $reasonstr)
This hook is called when a protection form is submitted.
onUpdateUserMailerFormattedPageStatus(&$formattedPageStatus)
This hook is called before a notification email gets sent.
onUploadFormInitDescriptor(&$descriptor)
This hook is called after the descriptor for the upload form as been assembled.
onUploadComplete( $uploadBase)
This hook is called upon completion of a file upload.
onUserMailerSplitTo(&$to)
This hook is called in UserMailer::send() to give extensions a chance to split up an email with multi...
onImportHandleUploadXMLTag( $reader, $revisionInfo)
This hook is called when parsing an XML tag in a file upload.
onSetupAfterCache()
This hook is called in Setup.php, after cache objects are set.
onDifferenceEngineShowDiff( $differenceEngine)
Use this hook to affect the diff text which eventually gets sent to the OutputPage object.
onEmailUserPermissionsErrors( $user, $editToken, &$hookErr)
Use this hook to retrieve permissions errors for emailing a user.
onBeforeDisplayNoArticleText( $article)
This hook is called before displaying message key "noarticletext" or "noarticletext-nopermission" at ...
onNewPagesLineEnding( $page, &$ret, $row, &$classes, &$attribs)
This hook is called before a NewPages line is finished.
onDifferenceEngineShowDiffPage( $out)
Use this hook to add additional output via the available OutputPage object into the diff view.
onImagePageShowTOC( $page, &$toc)
This hook is called when the file toc on an image page is generated.
onPageViewUpdates( $wikipage, $user)
Use this hook to make database (or other) changes after a page view is seen by MediaWiki.
onDeletedContributionsLineEnding( $page, &$ret, $row, &$classes, &$attribs)
This hook is called before a DeletedContributions HTML line is finished.
onWikiPageFactory( $title, &$page)
Use this hook to override WikiPage class used for a title.
onSpecialLogAddLogSearchRelations( $type, $request, &$qc)
Use this hook to add log relations to the current log.
onSearchGetNearMatchComplete( $term, &$title)
Use this hook to modify exact-title-matches in "go" searches.
onMimeMagicGuessFromContent( $mimeMagic, &$head, &$tail, $file, &$mime)
Use this hook to guess the MIME by content.
onDifferenceEngineAfterLoadNewText( $differenceEngine)
This hook is called in DifferenceEngine::loadNewText() after the new revision's content has been load...
onUserLoadAfterLoadFromSession( $user)
This hook is called to authenticate users on external or environmental means.
onSpecialMovepageAfterMove( $movePage, $oldTitle, $newTitle)
This hook is called after moving a page.
onEditFilterMergedContent( $context, $content, $status, $summary, $user, $minoredit)
Use this hook for a post-section-merge edit filter.
onPageContentSave( $wikiPage, $user, $content, &$summary, $isminor, $iswatch, $section, $flags, $status)
This hook is called before an article is saved.
onPageContentSaveComplete( $wikiPage, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $revision, $status, $originalRevId, $undidRevId)
This hook is called after an article has been updated.
onSpecialMuteModifyFormFields( $sp, &$fields)
Use this hook to add more fields to Special:Mute.
onOutputPageAfterGetHeadLinksArray(&$tags, $out)
This hook is called in OutputPage::getHeadLinksArray right before returning the result.
onContributionsToolLinks( $id, $title, &$tools, $specialPage)
Use this hook to change the tool links above Special:Contributions.
onSpecialVersionVersionUrl( $version, &$versionUrl)
This hook is called when building the URL for Special:Version.
onSpecialSearchProfiles(&$profiles)
Use this hook to modify search profiles.
onSpecialSearchResultsAppend( $specialSearch, $output, $term)
This hook is called immediately before returning HTML on the search results page.
onGetDoubleUnderscoreIDs(&$doubleUnderscoreIDs)
Use this hook to modify the list of behavior switches (double underscore variables in wikitext).
onArticleRollbackComplete( $wikiPage, $user, $revision, $current)
This hook is called after an article rollback is completed.
onModifyExportQuery( $db, &$tables, $cond, &$opts, &$join_conds, &$conds)
Use this hook to modify the query used by the exporter.
onAbortEmailNotification( $editor, $title, $rc)
Use this hook to cancel email notifications for an edit.
onRevisionInsertComplete( $revision, $data, $flags)
This hook is called after a revision is inserted into the database.
onUserGetLanguageObject( $user, &$code, $context)
This hook is called when getting a user's interface language object.
onLanguageGetNamespaces(&$namespaces)
Use this hook to provide custom ordering for namespaces or remove namespaces.
onPageContentLanguage( $title, &$pageLang, $userLang)
Use this hook to change the language in which the content of a page is written.
onLonelyPagesQuery(&$tables, &$conds, &$joinConds)
Use this hook to modify the query used by Special:LonelyPages.
onCanIPUseHTTPS( $ip, &$canDo)
Use this hook to determine whether the client at a given source IP is likely to be able to access the...
onSkinAfterPortlet( $skin, $portlet, &$html)
This hook is called when generating portlets.
onFileUpload( $file, $reupload, $hasDescription)
This hook is called when a file upload occurs.
onShowSearchHit( $searchPage, $result, $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html)
Use this hook to customize display of search hit.
onSearchAfterNoDirectMatch( $term, &$title)
This hook is called if there was no match for the exact result.
onSpecialPage_initList(&$list)
This hook is called when setting up SpecialPageFactory::$list.
onOpportunisticLinksUpdate( $page, $title, $parserOutput)
This hook is called by WikiPage::triggerOpportunisticLinksUpdate when a page view triggers a re-rende...
onSpecialTrackingCategories__generateCatLink( $specialPage, $catTitle, &$html)
This hook is called for each category link on Special:TrackingCategories.
onWatchedItemQueryServiceExtensions(&$extensions, $watchedItemQueryService)
Use this hook to create a WatchedItemQueryServiceExtension.
onSpecialNewPagesFilters( $special, &$filters)
This hook is called after building form options at NewPages.
onUserSaveOptions( $user, &$options, $originalOptions)
This hook is called just before saving user preferences.
onMimeMagicImproveFromExtension( $mimeMagic, $ext, &$mime)
Use this hook to further improve the MIME type detected by considering the file extension.
onGetUserPermissionsErrorsExpensive( $title, $user, $action, &$result)
This hook is equal to getUserPermissionsErrors, but it is called only if expensive checks are enabled...
onImgAuthBeforeStream(&$title, &$path, &$name, &$result)
This hook is called before a file is streamed to a user, but only when using img_auth....
onEnhancedChangesListModifyLineData( $changesList, &$data, $block, $rc, &$classes, &$attribs)
Use this hook to alter data used to build a grouped recent change inner line in EnhancedChangesList.
onArticleContentOnDiff( $diffEngine, $output)
This hook is called before showing the article content below a diff.
onArticleUndelete( $title, $create, $comment, $oldPageId, $restoredPages)
This hook is called when one or more revisions of an article are restored.
onChangeTagsAfterUpdateTags( $addedTags, $removedTags, $prevTags, $rc_id, $rev_id, $log_id, $params, $rc, $user)
This hook is called after tags have been updated with the ChangeTags::updateTags function.
onUndeletePageToolLinks( $context, $linkRenderer, &$links)
Use this hook to add one or more links to edit page subtitle when a page has been previously deleted.
onRecentChangesPurgeRows( $rows)
This hook is called when old recentchanges rows are purged, after deleting those rows but within the ...
onAlternateEdit( $editPage)
This hook is called before checking if a user can edit a page and before showing the edit form ( Edit...
onUserToolLinksEdit( $userId, $userText, &$items)
This hook is called when generating a list of user tool links, e.g.
onUserIsBot( $user, &$isBot)
Use this hook to establish whether a user is a bot account.
onDifferenceEngineRenderRevisionAddParserOutput( $differenceEngine, $out, $parserOutput, $wikiPage)
Use this hook to change the parser output.
onShowMissingArticle( $article)
This hook is called when generating the output for a non-existent page.
onEmailUserCC(&$to, &$from, &$subject, &$text)
This hook is called before sending the copy of the email to the author.
onPostLoginRedirect(&$returnTo, &$returnToQuery, &$type)
Use this hook to modify the post login redirect behavior.
onSpecialSearchResults( $term, &$titleMatches, &$textMatches)
This hook is called before search result display.
onDisplayOldSubtitle( $article, &$oldid)
This hook is called before creating subtitle when browsing old versions of an article.
onBitmapHandlerCheckImageArea( $image, &$params, &$checkImageAreaHookResult)
This hook is called by BitmapHandler::normaliseParams, after all normalizations have been performed,...
onOutputPageBodyAttributes( $out, $sk, &$bodyAttrs)
This hook is called when OutputPage::headElement is creating the body tag to allow for extensions to ...
onMessagesPreLoad( $title, &$message, $code)
This hook is called when loading a message from the database.
onGetUserPermissionsErrors( $title, $user, $action, &$result)
Use this hook to add a permissions error when permissions errors are checked for.
onValidateExtendedMetadataCache( $timestamp, $file)
Use this hook to validate the cached metadata in FormatMetadata::getExtendedMeta.
onGalleryGetModes(&$modeArray)
Use this hook to get a list of classes that can render different modes of a gallery.
onUserSetCookies( $user, &$session, &$cookies)
This hook is called when setting user cookies.
onSearchableNamespaces(&$arr)
Use this hook to modify which namespaces are searchable.
onCategoryViewer__generateLink( $type, $title, $html, &$link)
This hook is called before generating an output link allow extensions opportunity to generate a more ...
onAfterParserFetchFileAndTitle( $parser, $ig, &$html)
This hook is called after an image gallery is formed by Parser, just before adding its HTML to parser...
onSpecialListusersDefaultQuery( $pager, &$query)
This hook is called right before the end of UsersPager::getDefaultQuery().
onContentGetParserOutput( $content, $title, $revId, $options, $generateHtml, &$output)
Use this hook to customize parser output for a given content object.
onUserLogoutComplete( $user, &$inject_html, $oldName)
This hook is called after a user has logged out.
onChangesListSpecialPageQuery( $name, &$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
This hook is called when building an SQL query on pages inheriting from ChangesListSpecialPage (in co...
onWikiExporter__dumpStableQuery(&$tables, &$opts, &$join)
Use this hook to get the SELECT query for "stable" revisions dumps.
onEditPageGetDiffContent( $editPage, &$newtext)
Use this hook to modify the wikitext that will be used in "Show changes".
onBookInformation( $isbn, $output)
This hook is called before information output on Special:Booksources.
onOutputPageBeforeHTML( $out, &$text)
This hook is called when a page has been processed by the parser and the resulting HTML is about to b...
onBitmapHandlerTransform( $handler, $image, &$scalerParams, &$mto)
This hook is called before a file is transformed, giving extensions the possibility to transform it t...
onUserSaveSettings( $user)
This hook is called directly after user preferences have been saved to the database.
onLinkBegin( $skin, $target, &$html, &$customAttribs, &$query, &$options, &$ret)
This hook is called when generating internal and interwiki links in Linker::link(),...
onContentSecurityPolicyScriptSource(&$scriptSrc, $policyConfig, $mode)
Use this hook to modify the allowed CSP script sources.
onUploadVerifyUpload( $upload, $user, $props, $comment, $pageText, &$error)
Use this hook to perform upload verification, based on both file properties like MIME type (same as U...
onParserGetVariableValueSwitch( $parser, &$variableCache, $magicWordId, &$ret, $frame)
This hook is called when the parser needs the value of a custom magic word.
onUserIsLocked( $user, &$locked)
Use this hook to establish that a user is locked.
onHtmlPageLinkRendererBegin( $linkRenderer, $target, &$text, &$customAttribs, &$query, &$ret)
This hook is called when generating internal and interwiki links in LinkRenderer, before processing s...
onBeforeHttpsRedirect( $context, &$redirect)
This hook is called prior to forcing HTTP->HTTPS redirect.
onPrefixSearchExtractNamespace(&$namespaces, &$search)
This hook is called if core was not able to extract a namespace from the search string so that extens...
onUserIsBlockedGlobally( $user, $ip, &$blocked, &$block)
Use this hook to establish that a user is blocked on all wikis.
onContentAlterParserOutput( $content, $title, $parserOutput)
Use this hook to modify parser output for a given content object.
onMagicWordwgVariableIDs(&$variableIDs)
This hook is called when defining new magic words IDs.
onEditPage__showEditForm_fields( $editor, $out)
Use this hook to inject form field into edit form.
onArticleViewHeader( $article, &$pcache, &$outputDone)
Use this hook to control article output.
onEditPage__showEditForm_initial( $editor, $out)
This hook is called before showing the edit form.
onLocalFile__getHistory( $file, &$tables, &$fields, &$conds, &$opts, &$join_conds)
This hook is called before a file history query is performed.
onUserMailerChangeReturnPath( $to, &$returnPath)
This hook is called to generate a VERP return address when UserMailer sends an email,...
onSpecialMuteSubmit( $data)
This hook is called at the end of SpecialMute::onSubmit.
onUnwatchArticleComplete( $user, $page)
This hook is called after a watch is removed from an article.
onRawPageViewBeforeOutput( $obj, &$text)
This hook is called right before the text is blown out in action=raw.
onUserIsBlockedFrom( $user, $title, &$blocked, &$allowUsertalk)
Use this hook to check if a user is blocked from a specific page (for specific block exemptions if a ...
onSkinTemplatePreventOtherActiveTabs( $sktemplate, &$res)
Use this hook to prevent showing active tabs.
onSkinAfterContent(&$data, $skin)
Use this hook to add text after the page content and article metadata.
onGetFullURL( $title, &$url, $query)
Use this hook to modify fully-qualified URLs used in redirects/export/offsite data.
onSearchResultProvideThumbnail(array $pageIdentities, &$thumbnails)
This hook is called when generating search results in order to fill the 'thumbnail' field in an exten...
onRevisionRecordInserted( $revisionRecord)
This hook is called after a revision is inserted into the database.
onTitleIsAlwaysKnown( $title, &$isKnown)
This hook is called when determining if a page exists.
onSpecialPageBeforeExecute( $special, $subPage)
This hook is called before SpecialPage::execute.
onRequestContextCreateSkin( $context, &$skin)
This hook is called when RequestContext::getSkin creates a skin instance.
onTitleMoveStarting( $old, $nt, $user)
This hook is called before moving an article (title), but just after the atomic DB section starts.
onGetDefaultSortkey( $title, &$sortkey)
Use this hook to override the default sortkey for a page.
onUserRetrieveNewTalks( $user, &$talks)
This hook is called when retrieving "You have new messages!" message(s).
onEditPage__attemptSave( $editpage_Obj)
This hook is called before an article is saved, before WikiPage::doEditContent() is called.
onParserBeforeTidy( $parser, &$text)
This hook is called before tidy and custom tags replacements.
onGetLocalURL( $title, &$url, $query)
Use this hook to modify local URLs as output into page links.
onSoftwareInfo(&$software)
This hook is called by Special:Version for returning information about the software.
onEditPageGetPreviewContent( $editPage, &$content)
Use this hook to modify the wikitext that will be previewed.
onArticleMergeComplete( $targetTitle, $destTitle)
This hook is called after merging to article using Special:Mergehistory.
onLinksUpdateAfterInsert( $linksUpdate, $table, $insertions)
This hook is called at the end of LinksUpdate::incrTableUpdate() after each link table insert.
onCustomEditor( $article, $user)
This hook is called when invoking the page editor.
onOpenSearchUrls(&$urls)
This hook is called when constructing the OpenSearch description XML.
onFileTransformed( $file, $thumb, $tmpThumbPath, $thumbPath)
This hook is called when a file is transformed and moved into storage.
onSkinBuildSidebar( $skin, &$bar)
This hook is called at the end of Skin::buildSidebar().
onChangesListSpecialPageStructuredFilters( $special)
Use this hook to register filters for pages inheriting from ChangesListSpecialPage (in core: RecentCh...
onPrefsEmailAudit( $user, $oldaddr, $newaddr)
This hook is called when user changes their email address.
onWikiPageDeletionUpdates( $page, $content, &$updates)
Use this hook to manipulate the list of DeferrableUpdates to be applied when a page is deleted.
onWantedPages__getQueryInfo( $wantedPages, &$query)
This hook is called in WantedPagesPage::getQueryInfo().
onArticlePageDataBefore( $wikiPage, &$fields, &$tables, &$joinConds)
This hook is called before loading data of an article from the database.
onParserTestGlobals(&$globals)
Use this hook to define globals for parser tests.
onEmailUser(&$to, &$from, &$subject, &$text, &$error)
This hook is called before sending email from one user to another.
onSpecialListusersHeaderForm( $pager, &$out)
This hook is called before adding the submit button in UsersPager::getPageHeader().
onAncientPagesQuery(&$tables, &$conds, &$joinConds)
Use this hook to modify the query used by Special:AncientPages.
onChangesListInsertArticleLink( $changesList, &$articlelink, &$s, $rc, $unpatrolled, $watched)
Use this hook to override or augment link to article in RC list.
onSpecialSearchResultsPrepend( $specialSearch, $output, $term)
This hook is called immediately before returning HTML on the search results page.
onApiBeforeMain(&$main)
This hook is called before calling ApiMain's execute() method in api.php.
onUserClearNewTalkNotification( $userIdentity, $oldid)
This hook is called before clearing the "You have new messages!" message.
onChangeTagsAllowedAdd(&$allowedTags, $addTags, $user)
This hook is called when checking if a user can add tags to a change.
onSecondaryDataUpdates( $title, $oldContent, $recursive, $parserOutput, &$updates)
Use this hook to modify the list of DataUpdates to perform when page content is modified.
onEditPageNoSuchSection( $editpage, &$res)
This hook is called when a section edit request is given for an non-existent section.
onPlaceNewSection( $content, $oldtext, $subject, &$text)
Use this hook to override placement of new sections.
onSpecialWatchlistGetNonRevisionTypes(&$nonRevisionTypes)
This hook is called when building the SQL query for SpecialWatchlist.
onLinksUpdateComplete( $linksUpdate, $ticket)
This hook is called at the end of LinksUpdate::doUpdate() when updating, including delete and insert,...
onGetExtendedMetadata(&$combinedMeta, $file, $context, $single, &$maxCacheTime)
Use this hook to get extended file metadata for the API.
onLogLine( $log_type, $log_action, $title, $paramArray, &$comment, &$revert, $time)
Use this hook to process a single log entry on Special:Log.
onBlockIp( $block, $user, &$reason)
This hook is called before an IP address or user is blocked.
onIsTrustedProxy( $ip, &$result)
Use this hook to override the result of ProxyLookup::isTrustedProxy().
onMediaWikiPHPUnitTest__endTest( $test, $time)
This hook is called after each PHPUnit test completes.
onRevisionDataUpdates( $title, $renderedRevision, &$updates)
This hook is called when constructing a list of DeferrableUpdate to be executed to record secondary d...
onImportHandleUnknownUser( $name)
When a user doesn't exist locally, use this hook to auto-create it.
onAfterImportPage( $title, $foreignTitle, $revCount, $sRevCount, $pageInfo)
This hook is called when a page import is completed.
onArticleUpdateBeforeRedirect( $article, &$sectionanchor, &$extraq)
This hook is called after a page is updated (usually on save), before the user is redirected back to ...
onCategoryAfterPageRemoved( $category, $wikiPage, $id)
This hook is called after a page is removed from a category.
onPreferencesFormPreSave( $formData, $form, $user, &$result, $oldUserOptions)
Use this hook to override preferences being saved.
onMessageCacheReplace( $title, $text)
This hook is called when a message page is changed.
onTitleIsMovable( $title, &$result)
This hook is called when determining if it is possible to move a page.
onMaintenanceUpdateAddParams(&$params)
Use this hook to add params to the update.php maintenance script.
onPersonalUrls(&$personal_urls, &$title, $skin)
Use this hook to alter the user-specific navigation links (e.g.
onDifferenceEngineMarkPatrolledLink( $differenceEngine, &$markAsPatrolledLink, $rcid)
Use this hook to change the "mark as patrolled" link which is shown both on the diff header as well a...
onBeforeInitialize( $title, $unused, $output, $user, $request, $mediaWiki)
This hook is called before anything is initialized in MediaWiki::performRequest().
onParserBeforeInternalParse( $parser, &$text, $stripState)
This hook is called at the beginning of Parser::internalParse().
onEmailUserForm(&$form)
This hook is called after building the email user form object.
onLanguageGetTranslatedLanguageNames(&$names, $code)
Use this hook to provide translated language names.
onRandomPageQuery(&$tables, &$conds, &$joinConds)
Use this hook to modify the query used by Special:Random to select random pages.
onArticlePrepareTextForEdit( $wikiPage, $popts)
This hook is called when preparing text to be saved.
onTitleGetEditNotices( $title, $oldid, &$notices)
Use this hook to add edit notices.
onDeleteUnknownPreferences(&$where, $db)
This hook is called by the cleanupPreferences.php maintenance script to build a WHERE clause with whi...
onUserCan( $title, $user, $action, &$result)
Use this hook to interrupt or advise the "user can do X to Y article" check.
onSkinTemplateToolboxEnd( $sk, $dummy)
This hook is called by SkinTemplate skins after toolbox links have been rendered (useful for adding m...
onBadImage( $name, &$bad)
This hook is called when checking against the bad image list.
onChangeAuthenticationDataAudit( $req, $status)
This hook is called when a user changes their password.
onUserLoadDefaults( $user, $name)
This hook is called when loading a default user.
onUploadVerifyFile( $upload, $mime, &$error)
Use this hook to perform extra file verification, based on MIME type, etc.
onPrefixSearchBackend( $ns, $search, $limit, &$results, $offset)
Use this hook to override the title prefix search used for OpenSearch and AJAX search suggestions.
onUndeleteForm__undelete(&$archive, $title)
This hook is called in UndeleteForm::undelete, after checks are conducted.
onDifferenceEngineOldHeaderNoOldRev(&$oldHeader)
Use this hook to change the $oldHeader variable in cases when there is no old revision.
onParserSectionCreate( $parser, $section, &$sectionContent, $showEditLinks)
This hook is called each time the parser creates a document section from wikitext.
onUserGetRightsRemove( $user, &$rights)
This hook is called in User::getRights().
onHTMLFileCache__useFileCache( $context)
Use this hook to override whether a page should be cached in file cache.
onUserAddGroup( $user, &$group, &$expiry)
This hook is alled when adding a group or changing a group's expiry.
onEditFormPreloadText(&$text, $title)
Use this hook to populate the edit form when creating pages.
onSpecialSearchNogomatch(&$title)
This hook is called when the 'Go' feature is triggered and the target doesn't exist.
onGetRelativeTimestamp(&$output, &$diff, $timestamp, $relativeTo, $user, $lang)
Use this hook to pre-emptively override the relative timestamp generated by MWTimestamp::getRelativeT...
onActionModifyFormFields( $name, &$fields, $article)
This hook is called before creating an HTMLForm object for a page action.
onInvalidateEmailComplete( $user)
This hook is called after a user's email has been invalidated successfully.
onConfirmEmailComplete( $user)
This hook is called after a user's email has been confirmed successfully.
onMakeGlobalVariablesScript(&$vars, $out)
This hook is called at end of OutputPage::getJSVars.
onArticlePageDataAfter( $wikiPage, &$row)
This hook is called after loading data of an article from the database.
onArticleRevisionUndeleted( $title, $revision, $oldPageID)
This hook is called after an article revision is restored.
onParserBeforeStrip( $parser, &$text, $stripState)
This hook is called at start of parsing time.
onResetPasswordExpiration( $user, &$newExpire)
Use this hook to allow extensions to set a default password expiration.
onSpecialUploadComplete( $form)
This hook is called after successfully uploading a file from Special:Upload.
onArticleViewFooter( $article, $patrolFooterShown)
This hook is called after showing the footer section of an ordinary page view.
onParserOutputStashForEdit( $page, $content, $output, $summary, $user)
This hook is called when an edit stash parse finishes, before the output is cached.
onXmlDumpWriterOpenPage( $obj, &$out, $row, $title)
This hook is called at the end of XmlDumpWriter::openPage, to allow extra metadata to be added.
onUploadStashFile( $upload, $user, $props, &$error)
This hook is called before a file is stashed (uploaded to stash).
onSpecialBlockModifyFormFields( $sp, &$fields)
Use this hook to add more fields to Special:Block.
onParserTestTables(&$tables)
Use this hook to alter the list of tables to duplicate when parser tests are run.
onArticleDeleteComplete( $wikiPage, $user, $reason, $id, $content, $logEntry, $archivedRevisionCount)
This hook is called after an article is deleted.
onUploadForm_initial( $upload)
This hook is called before the upload form is generated.
__construct(HookContainer $container)
onInternalParseBeforeSanitize( $parser, &$text, $stripState)
This hook is called during Parser's internalParse method just before the parser removes unwanted/dang...
onAutopromoteCondition( $type, $args, $user, &$result)
Use this hook to check autopromote condition for user.
onGitViewers(&$extTypes)
This hook is called when generating the list of git viewers for Special:Version, allowing you to modi...
onSpecialSearchSetupEngine( $search, $profile, $engine)
Use this hook for passing custom data to the search engine.
onDeletedContribsPager__reallyDoQuery(&$data, $pager, $offset, $limit, $descending)
This hook is called before really executing the query for Special:DeletedContributions.
onGetHumanTimestamp(&$output, $timestamp, $relativeTo, $user, $lang)
Use this hook to preemptively override the human-readable timestamp generated by MWTimestamp::getHuma...
onUserIsEveryoneAllowed( $right)
Use this hook to check if all users are allowed some user right; return false if a UserGetRights hook...
onEmailUserComplete( $to, $from, $subject, $text)
This hook is called after sending email from one user to another.
onSpecialListusersFormatRow(&$item, $row)
This hook is called right before the end of UsersPager::formatRow().
onShowSearchHitTitle(&$title, &$titleSnippet, $result, $terms, $specialSearch, &$query, &$attributes)
Use this hook to customise display of search hit title/link.
onResourceLoaderJqueryMsgModuleMagicWords(ResourceLoaderContext $context, array &$magicWords)
Add magic words to the mediawiki.jqueryMsg module.
onUploadForm_getInitialPageText(&$pageText, $msg, $config)
This hook is called after the initial page text for file uploads is generated.
onEmailConfirmed( $user, &$confirmed)
This hook is called when checking that the user's email address is "confirmed".
onLocalisationCacheRecache( $cache, $code, &$alldata, $unused)
Called when loading the localisation data into cache.
onChangeTagsListActive(&$tags)
Use this hook to nominate which of the tags your extension uses are in active use.
onNewDifferenceEngine( $title, &$oldId, &$newId, $old, $new)
This hook is called when a new DifferenceEngine object is made.
onUploadCreateFromRequest( $type, &$className)
This hook is called when UploadBase::createFromRequest has been called.
onBacklinkCacheGetConditions( $table, $title, &$conds)
Use this hook to set conditions for query when links to certain title are fetched.
onArticleRevisionVisibilitySet( $title, $ids, $visibilityChangeMap)
This hook is called when changing visibility of one or more revisions of an article.
onGetMetadataVersion(&$version)
Use this hook to modify the image metadata version currently in use.
onExtensionTypes(&$extTypes)
This hook is called when generating the extensions credits.
onUserSetEmailAuthenticationTimestamp( $user, &$timestamp)
This hook is called when setting the timestamp of a User's email authentication.
onLocalisationCacheRecacheFallback( $cache, $code, &$alldata)
Called for each language when merging fallback data into the cache.
onBeforeParserFetchTemplateAndtitle( $parser, $title, &$skip, &$id)
This hook is called before a template is fetched by Parser.
onUnitTestsBeforeDatabaseTeardown()
This hook is called right before MediaWiki tears down its database infrastructure used for unit tests...
onSkinCopyrightFooter( $title, $type, &$msg, &$link)
Use this hook for site and per-namespace customization of the copyright notice.
onSpecialStatsAddExtra(&$extraStats, $context)
Use this hook to add extra statistics at the end of Special:Statistics.
onUserMailerTransformContent( $to, $from, &$body, &$error)
This hook is called in UserMailer::send() to change email contents.
onTitleExists( $title, &$exists)
This hook is called when determining whether a page exists at a given title.
onUserGroupsChanged( $user, $added, $removed, $performer, $reason, $oldUGMs, $newUGMs)
This hook is called after user groups are changed.
onParserFetchTemplate( $parser, $title, $rev, &$text, &$deps)
This hook is called when the parser fetches a template.
onPageHistoryLineEnding( $historyAction, &$row, &$s, &$classes, &$attribs)
This hook is called right before the <li> is generated for a history line.
onSkinTemplateNavigation( $sktemplate, &$links)
This hook is called on content pages after the tabs have been added, but before variants have been ad...
onEditPageGetCheckboxesDefinition( $editpage, &$checkboxes)
Use this hook to modify the edit checkboxes and other form fields below the textarea in the edit form...
onContributionsLineEnding( $page, &$ret, $row, &$classes, &$attribs)
This hook is called before a contributions HTML line is finished.
onSkinGetPoweredBy(&$text, $skin)
This hook is called when generating the code used to display the "Powered by MediaWiki" icon.
onUserMailerTransformMessage( $to, $from, &$subject, &$headers, &$body, &$error)
This hook is called in UserMailer::send() to change email after it has gone through the MIME transfor...
onCategoryViewer__doCategoryQuery( $type, $res)
This hook is called after querying for pages to be displayed in a Category page.
onSpecialPageBeforeFormDisplay( $name, $form)
This hook is called before executing the HTMLForm object.
onEditPage__attemptSave_after( $editpage_Obj, $status, $resultDetails)
This hook is called after an article save attempt.
onThumbnailBeforeProduceHTML( $thumbnail, &$attribs, &$linkAttribs)
This hook is called before an image HTML is about to be rendered (by ThumbnailImage:toHtml method).
onHistoryRevisionTools( $rev, &$links, $prevRev, $user)
Use this hook to override or extend the revision tools available from the page history view,...
onSessionMetadata( $backend, &$metadata, $requests)
Use this hook to add metadata to a session being saved.
onNewRevisionFromEditComplete( $wikiPage, $rev, $originalRevId, $user, &$tags)
This hook is called when a revision was inserted due to an edit, file upload, import or page move.
onUserRequiresHTTPS( $user, &$https)
This hook is called to determine whether a user needs to be switched to HTTPS.
onFileDeleteComplete( $file, $oldimage, $article, $user, $reason)
This hook is called when a file is deleted.
onUnblockUserComplete( $block, $user)
This hook is called after an IP address or user has been unblocked.
onChangeUserGroups( $performer, $user, &$add, &$remove)
This hook is called before user groups are changed.
onOldChangesListRecentChangesLine( $changeslist, &$s, $rc, &$classes, &$attribs)
Use this hook to customize a recent changes line.
onRollbackComplete( $wikiPage, $user, $revision, $current)
After an article rollback is completed.
onLoginFormValidErrorMessages(array &$messages)
This hook is called in LoginForm when a function gets valid error messages.
onBaseTemplateAfterPortlet( $template, $portlet, &$html)
This hook is called after output of portlets, allow injecting custom HTML after the section.
onTitleMoveComplete( $old, $nt, $user, $pageid, $redirid, $reason, $revision)
This hook is called after moving an article (title), post-commit.
onSpecialSearchGoResult( $term, $title, &$url)
Use this hook to alter the behaviour of the 'go' feature when searching.
onPageHistoryBeforeList( $article, $context)
This hook is called when a history page list is about to be constructed.
onUserArrayFromResult(&$userArray, $res)
This hook is called when creating an UserArray object from a database result.
onGetLocalURL__Internal( $title, &$url, $query)
Use this hook to modify local URLs to internal pages.
onBacklinkCacheGetPrefix( $table, &$prefix)
Use this hook to set a prefix for a specific link table.
onParserGetVariableValueVarCache( $parser, &$varCache)
Use this hook to change the value of the variable cache or return false to not use it.
onConvertContent( $content, $toModel, $lossy, &$result)
This hook is called by AbstractContent::convert when a conversion to another content model is request...
onBeforePageRedirect( $out, &$redirect, &$code)
This hook is called prior to sending an HTTP redirect.
onArticleShowPatrolFooter( $article)
This hook is called at the beginning of Article::showPatrolFooter.
onParserLimitReportPrepare( $parser, $output)
This hook is called at the end of Parser:parse() when the parser will include comments about size of ...
onGetCacheVaryCookies( $out, &$cookies)
Use this hook to get cookies that should vary cache options.
onChangeTagCanCreate( $tag, $user, &$status)
Use this hook to tell whether a change tag should be able to be created from the UI (Special:Tags) or...
onLocalUserCreated( $user, $autocreated)
This hook is called when a local user has been created.
onPageHistoryPager__getQueryInfo( $pager, &$queryInfo)
This hook is called when a history pager query parameter set is constructed.
onArticlePurge( $wikiPage)
This hook is called before executing "&action=purge".
onArticleProtect( $wikiPage, $user, $protect, $reason)
This hook is called before an article is protected.
onMarkPatrolledComplete( $rcid, $user, $wcOnlySysopsCanPatrol, $auto)
This hook is called after an edit is marked patrolled.
onFetchChangesList( $user, $skin, &$list, $groups)
This hook is called when fetching the ChangesList derivative for a particular user.
onPageRenderingHash(&$confstr, $user, &$forOptions)
NOTE: Consider using ParserOptionsRegister instead.
onUserResetAllOptions( $user, &$newOptions, $options, $resetKinds)
This hook is called when user preferences have been requested to be reset.
onImagePageFindFile( $page, &$file, &$displayFile)
This hook is called when fetching the file associated with an image page.
onInterwikiLoadPrefix( $prefix, &$iwData)
This hook is called when resolving whether a given prefix is an interwiki or not.
onUndeleteShowRevision( $title, $rev)
This hook is called when showing a revision in Special:Undelete.
onSearchDataForIndex(&$fields, $handler, $page, $output, $engine)
Use this hook to add data to search document.
onDifferenceEngineOldHeader( $differenceEngine, &$oldHeader, $prevlink, $oldminor, $diffOnly, $ldel, $unhide)
Use this hook to change the $oldHeader variable, which contains information about the old revision,...
onPageMoveComplete( $old, $new, $user, $pageid, $redirid, $reason, $revision)
This hook is called after moving an article (title), post-commit.
onWebRequestPathInfoRouter( $router)
This hook is called while building the PathRouter to parse the REQUEST_URI.
onOutputPageCheckLastModified(&$modifiedTimes, $out)
This hook is called when checking if the page has been modified since the last visit.
onUserGetEmail( $user, &$email)
This hook is called when getting an user email address.
onNamespaceIsMovable( $index, &$result)
This hook is called when determining if it is possible to move pages in a namespace.
onSkinPreloadExistence(&$titles, $skin)
Use this hook to supply titles that should be added to link existence cache before the page is render...
onLinkEnd( $skin, $target, $options, &$html, &$attribs, &$ret)
This hook is called when generating internal and interwiki links in Linker::link(),...
onSpecialListusersHeader( $pager, &$out)
This hook is called after adding the submit button in UsersPager::getPageHeader().
onListDefinedTags(&$tags)
This hook is called when trying to find all defined tags.
onAuthChangeFormFields( $requests, $fieldInfo, &$formDescriptor, $action)
This hook is called after converting a field information array obtained from a set of AuthenticationR...
onCategoryAfterPageAdded( $category, $wikiPage)
This hook is called after a page is added to a category.
onMessageCache__get(&$key)
This hook is called when fetching a message.
onSkinTemplateTabAction( $sktemplate, $title, $message, $selected, $checkEdit, &$classes, &$query, &$text, &$result)
Use this hook to override SkinTemplate::tabAction().
onDiffRevisionTools( $newRev, &$links, $oldRev, $user)
Use this hook to override or extend the revision tools available from the diff view,...
onUserRemoveGroup( $user, &$group)
This hook is called when removing a group.
onImagePageAfterImageLinks( $imagePage, &$html)
This hook is called after the image links section on an image page is built.
onCanonicalNamespaces(&$namespaces)
Use this hook to add namespaces or alter the defaults.
onIsValidPassword( $password, &$result, $user)
Use this hook to override the result of User::isValidPassword()
onUploadForm_BeforeProcessing( $upload)
This hook is called at the beginning of processUpload().
onArticleDeleteAfterSuccess( $title, $outputPage)
Use this hook to modify the output after an article has been deleted.
onHtmlPageLinkRendererEnd( $linkRenderer, $target, $isKnown, &$text, &$attribs, &$ret)
This hook is called when generating internal and interwiki links in LinkRenderer, just before the fun...
onUserGetDefaultOptions(&$defaultOptions)
This hook is called after fetching core default user options but before returning the options.
onContentHandlerDefaultModelFor( $title, &$model)
This hook is called when the default content model is determined for a given title.
onGetInternalURL( $title, &$url, $query)
Use this hook to modify fully-qualified URLs used for squid cache purging.
onSkinTemplateGetLanguageLink(&$languageLink, $languageLinkTitle, $title, $outputPage)
This hook is called after building the data for a language link from which the actual html is constru...
onWfShellWikiCmd(&$script, &$parameters, &$options)
This hook is called when generating a shell-escaped command line string to run a MediaWiki CLI script...
onAbortTalkPageEmailNotification( $targetUser, $title)
Use this hook to disable email notifications of edits to users' talk pages.
onSpecialRandomGetRandomTitle(&$randstr, &$isRedir, &$namespaces, &$extra, &$title)
This hook is called during the execution of Special:Random,.
onCategoryPageView( $catpage)
This hook is called before viewing a categorypage in CategoryPage::view.
onEditPageBeforeConflictDiff( $editor, $out)
Use this hook to modify the EditPage object and output when there's an edit conflict.
onSearchResultInitFromTitle( $title, &$id)
Use this hook to set the revision used when displaying a page in search results.
onLinkerMakeExternalImage(&$url, &$alt, &$img)
This hook is called at the end of Linker::makeExternalImage() just before the return.
onGetNewMessagesAlert(&$newMessagesAlert, $newtalks, $user, $out)
Use this hook to disable or modify the new messages alert.
onUserLoggedIn( $user)
This hook is called after a user is logged in.
onGetLinkColours( $linkcolour_ids, &$colours, $title)
Use this hook to modify the CSS class of an array of page links.
onParserCloned( $parser)
This hook is called when the parser is cloned.
onEnhancedChangesListModifyBlockLineData( $changesList, &$data, $rc)
Use this hook to alter data used to build a non-grouped recent change line in EnhancedChangesList.
onWgQueryPages(&$qp)
This hook is called when initialising list of QueryPage subclasses.
Context object that contains information about the state of a specific ResourceLoader web request.
The main skin class which provides methods and properties for all other skins.
Definition Skin.php:41
Interface for configuration instances.
Definition Config.php:30
Stable to implement.
Stable to implement.
Stable to implement.
Definition GetIPHook.php:9
Stable to implement.
Called by REST SearchHandler in order to allow extensions to fill the 'description' field in search r...
Called by REST SearchHandler in order to allow extensions to fill the 'thumbnail' field in rest searc...
$line
Definition mcc.php:119
$cache
Definition mcc.php:33
if( $line===false) $args
Definition mcc.php:124
$content
Definition router.php:76
$mime
Definition router.php:60
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition router.php:42
if(!is_readable( $file)) $ext
Definition router.php:48
if(!isset( $args[0])) $lang