43 ->getRecentChangeLookup()
44 ->getRecentChangeById( $rc );
54 $page = $rc->getPage() ?? PageReferenceValue::localReference(
NS_SPECIAL,
'Badtitle' );
55 $entry->setTarget( $page );
56 $entry->setParameters( self::buildParams( $rc ) );
57 $entry->setPerformer( $user );
58 $entry->addTags( $tags );
59 $logid = $entry->insert();
60 $entry->publish( $logid,
'udp' );
71 private static function buildParams( $change ) {
73 '4::curid' => $change->getAttribute(
'rc_this_oldid' ),
74 '5::previd' => $change->getAttribute(
'rc_last_oldid' ),
81class_alias( PatrolLog::class,
'PatrolLog' );
Class for creating new log entries and inserting them into the database.