/** * Mark a given change as patrolled * * @param $change Mixed: InterwikiIntegrationRecentChange or corresponding integration_rc_id * @param $auto Boolean: for automatic patrol * @return See doMarkPatrolled(), or null if $change is not an existing integration_rc_id */ public static function markPatrolled($change, $auto = false) { $change = $change instanceof InterwikiIntegrationRecentChange ? $change : InterwikiIntegrationRecentChange::newFromId($change); if (!$change instanceof InterwikiIntegrationRecentChange) { return null; } return $change->doMarkPatrolled($auto); }