MediaWiki master
RecentChangeFactory.php
Go to the documentation of this file.
1<?php
8
13use stdClass;
14
20
24 public const SEND_NONE = true;
25
29 public const SEND_FEED = false;
30
37 public function newRecentChangeFromRow( $row ): RecentChange;
38
60 public function createEditRecentChange(
61 string $timestamp,
62 PageIdentity $page,
63 bool $minor,
64 UserIdentity $user,
65 string $comment,
66 int $oldId,
67 bool $bot,
68 string $ip = '',
69 ?int $oldSize = 0,
70 ?int $newSize = 0,
71 int $newId = 0,
72 int $patrol = 0,
73 array $tags = [],
74 ?EditResult $editResult = null
75 ): RecentChange;
76
95 string $timestamp,
96 PageIdentity $page,
97 bool $minor,
98 UserIdentity $user,
99 string $comment,
100 bool $bot,
101 string $ip = '',
102 ?int $size = 0,
103 int $newId = 0,
104 int $patrol = 0,
105 array $tags = []
106 ): RecentChange;
107
131 public function createLogRecentChange(
132 string $timestamp,
133 PageReference $logPage,
134 UserIdentity $user,
135 string $actionComment,
136 string $ip,
137 string $type,
138 string $action,
139 PageReference $target,
140 string $logComment,
141 string $params,
142 int $newId = 0,
143 string $actionCommentIRC = '',
144 int $revId = 0,
145 bool $isPatrollable = false,
146 ?bool $forceBotFlag = null,
147 int $deleted = 0
148 ): RecentChange;
149
169 string $timestamp,
170 PageIdentity $categoryTitle,
171 ?UserIdentity $user,
172 string $comment,
173 PageIdentity $pageTitle,
174 int $oldRevId,
175 int $newRevId,
176 bool $bot,
177 string $ip = '',
178 int $deleted = 0,
179 ?bool $added = null,
180 bool $forImport = false
181 ): RecentChange;
182
193 public function insertRecentChange( RecentChange $recentChange, bool $send = self::SEND_FEED );
194}
Utility class for creating and reading rows in the recentchanges table.
Object for storing information about the effects of an edit.
Interface for objects (potentially) representing an editable wiki page.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
createNewPageRecentChange(string $timestamp, PageIdentity $page, bool $minor, UserIdentity $user, string $comment, bool $bot, string $ip='', ?int $size=0, int $newId=0, int $patrol=0, array $tags=[])
Create a RecentChange for a new page.
createCategorizationRecentChange(string $timestamp, PageIdentity $categoryTitle, ?UserIdentity $user, string $comment, PageIdentity $pageTitle, int $oldRevId, int $newRevId, bool $bot, string $ip='', int $deleted=0, ?bool $added=null, bool $forImport=false)
Create a RecentChange for a category membership change.
newRecentChangeFromRow( $row)
Create a new RecentChange object from a database row.
insertRecentChange(RecentChange $recentChange, bool $send=self::SEND_FEED)
Insert a recent change into the database.
createEditRecentChange(string $timestamp, PageIdentity $page, bool $minor, UserIdentity $user, string $comment, int $oldId, bool $bot, string $ip='', ?int $oldSize=0, ?int $newSize=0, int $newId=0, int $patrol=0, array $tags=[], ?EditResult $editResult=null)
Create a RecentChange for an edit.
createLogRecentChange(string $timestamp, PageReference $logPage, UserIdentity $user, string $actionComment, string $ip, string $type, string $action, PageReference $target, string $logComment, string $params, int $newId=0, string $actionCommentIRC='', int $revId=0, bool $isPatrollable=false, ?bool $forceBotFlag=null, int $deleted=0)
Create a RecentChange for a log entry.
Interface for objects representing user identity.