From b96d2808fd743efb6f0a6f2c4ed7697e3b3682f0 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 11 Jan 2020 15:19:27 +0100 Subject: [PATCH] RCDatabaseLogEntry: add a method to get the last rev_id Change-Id: I72290129610245fe7b8f7be0258c0efe8911c242 --- includes/logging/RCDatabaseLogEntry.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/logging/RCDatabaseLogEntry.php b/includes/logging/RCDatabaseLogEntry.php index 4dc40373ff8..f407599b1ec 100644 --- a/includes/logging/RCDatabaseLogEntry.php +++ b/includes/logging/RCDatabaseLogEntry.php @@ -41,6 +41,16 @@ class RCDatabaseLogEntry extends DatabaseLogEntry { return $this->row->rc_this_oldid; } + /** + * Get the rev_id associated to the parent revision + * @since 1.35 + * + * @return string + */ + public function getParentRevId() { + return $this->row->rc_last_oldid; + } + public function getType() { return $this->row->rc_log_type; }