MediaWiki master
RecentChangeFactory.php
Go to the documentation of this file.
1<?php
8
13use stdClass;
14
19
23 public const SEND_NONE = true;
24
28 public const SEND_FEED = false;
29
36 public function newRecentChangeFromRow( $row ): RecentChange;
37
59 public function createEditRecentChange(
60 string $timestamp,
61 PageIdentity $page,
62 bool $minor,
63 UserIdentity $user,
64 string $comment,
65 int $oldId,
66 bool $bot,
67 string $ip = '',
68 ?int $oldSize = 0,
69 ?int $newSize = 0,
70 int $newId = 0,
71 int $patrol = 0,
72 array $tags = [],
73 ?EditResult $editResult = null
74 ): RecentChange;
75
94 string $timestamp,
95 PageIdentity $page,
96 bool $minor,
97 UserIdentity $user,
98 string $comment,
99 bool $bot,
100 string $ip = '',
101 ?int $size = 0,
102 int $newId = 0,
103 int $patrol = 0,
104 array $tags = []
105 ): RecentChange;
106
130 public function createLogRecentChange(
131 string $timestamp,
132 PageReference $logPage,
133 UserIdentity $user,
134 string $actionComment,
135 string $ip,
136 string $type,
137 string $action,
138 PageReference $target,
139 string $logComment,
140 string $params,
141 int $newId = 0,
142 string $actionCommentIRC = '',
143 int $revId = 0,
144 bool $isPatrollable = false,
145 ?bool $forceBotFlag = null,
146 int $deleted = 0
147 ): RecentChange;
148
168 string $timestamp,
169 PageIdentity $categoryTitle,
170 ?UserIdentity $user,
171 string $comment,
172 PageIdentity $pageTitle,
173 int $oldRevId,
174 int $newRevId,
175 bool $bot,
176 string $ip = '',
177 int $deleted = 0,
178 ?bool $added = null,
179 bool $forImport = false
180 ): RecentChange;
181
192 public function insertRecentChange( RecentChange $recentChange, bool $send = self::SEND_FEED );
193}
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.