52 'type' => RecentChange::parseFromRCType( $rc->
getAttribute(
'rc_type' ) ),
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;
128 $packet[
'wiki'] = WikiMap::getWikiIdFromDbDomain( WikiMap::getCurrentWikiDbDomain() );
$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.
Utility class for creating new RC entries.
parseParams()
Parses and returns the rc_params attribute.
getAttribute( $name)
Get an attribute value.