Go to the documentation of this file.
34 abstract protected function formatArray( array $packet );
53 'namespace' => $rc->
getTitle()->getNamespace(),
54 'title' => $rc->
getTitle()->getPrefixedText(),
61 if ( isset( $feed[
'channel'] ) ) {
62 $packet[
'channel'] = $feed[
'channel'];
69 $packet[
'minor'] = (bool)$rc->
getAttribute(
'rc_minor' );
71 $packet[
'patrolled'] = (bool)$rc->
getAttribute(
'rc_patrolled' );
81 $packet[
'revision'] = [
88 $packet[
'length'] = [
'old' =>
null,
'new' => $rc->
getAttribute(
'rc_new_len' ) ];
89 $packet[
'revision'] = [
'old' =>
null,
'new' => $rc->
getAttribute(
'rc_this_oldid' ) ];
94 $packet[
'log_type'] = $rc->
getAttribute(
'rc_log_type' );
95 $packet[
'log_action'] = $rc->
getAttribute(
'rc_log_action' );
107 foreach ( $params as $key => $value ) {
108 if ( strpos( $key,
':' ) === false ) {
109 $logParams[$key] = $value;
112 $logParam = explode(
':', $key, 3 );
113 $logParams[$logParam[2]] = $value;
115 $packet[
'log_params'] = $logParams;
117 $packet[
'log_params'] = explode(
"\n", $rc->
getAttribute(
'rc_params' ) );
120 $packet[
'log_action_comment'] = $actionComment;
static getCurrentWikiDbDomain()
Utility class for creating new RC entries.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
$wgUseNPPatrol
Use new page patrolling to check new pages on Special:Newpages.
parseParams()
Parses and returns the rc_params attribute.
static getWikiIdFromDbDomain( $domain)
Get the wiki ID of a database domain.
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
$wgServerName
Server name.
getAttribute( $name)
Get an attribute value.
static parseFromRCType( $rcType)
Parsing RC_* constants to human-readable test.
$wgScriptPath
The path we should point to.