51 'id' => $rc->getAttribute(
'rc_id' ),
53 'namespace' => $rc->getTitle()->getNamespace(),
54 'title' => $rc->getTitle()->getPrefixedText(),
55 'comment' => $rc->getAttribute(
'rc_comment' ),
56 'timestamp' => (int)
wfTimestamp( TS_UNIX, $rc->getAttribute(
'rc_timestamp' ) ),
57 'user' => $rc->getAttribute(
'rc_user_text' ),
58 'bot' => (bool)$rc->getAttribute(
'rc_bot' ),
61 if ( isset( $feed[
'channel'] ) ) {
62 $packet[
'channel'] = $feed[
'channel'];
65 $type = $rc->getAttribute(
'rc_type' );
69 $packet[
'minor'] = (bool)$rc->getAttribute(
'rc_minor' );
71 $packet[
'patrolled'] = (bool)$rc->getAttribute(
'rc_patrolled' );
78 'old' => $rc->getAttribute(
'rc_old_len' ),
79 'new' => $rc->getAttribute(
'rc_new_len' )
81 $packet[
'revision'] = [
82 'old' => $rc->getAttribute(
'rc_last_oldid' ),
83 'new' => $rc->getAttribute(
'rc_this_oldid' )
88 $packet[
'length'] = [
'old' =>
null,
'new' => $rc->getAttribute(
'rc_new_len' ) ];
89 $packet[
'revision'] = [
'old' =>
null,
'new' => $rc->getAttribute(
'rc_this_oldid' ) ];
93 $packet[
'log_id'] = $rc->getAttribute(
'rc_logid' );
94 $packet[
'log_type'] = $rc->getAttribute(
'rc_log_type' );
95 $packet[
'log_action'] = $rc->getAttribute(
'rc_log_action' );
96 if ( $rc->getAttribute(
'rc_params' ) ) {
100 $rc->getAttribute(
'rc_params' ) ==
serialize(
false ) ||
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;
$wgServerName
Server name.
$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.
$wgScriptPath
The path we should point to.
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
wfWikiID()
Get an ASCII string identifying this wiki This is used as a prefix in memcached keys.
Utility class for creating new RC entries.
static parseFromRCType( $rcType)
Parsing RC_* constants to human-readable test.
processing should stop and the error should be shown to the user * false