X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FRevisionList.php;h=5243cc65dd355b3b4b9501e24fb67126a45336fa;hp=fa454e07e3b6d6fa8acfa3a2c4b2d1e3fd2cdb66;hb=8de958444f1d36ecb95d3a53d96cc1404e95468e;hpb=16c80e429be5904fb42a93f260f8de3d18f0c692 diff --git a/includes/RevisionList.php b/includes/RevisionList.php index fa454e07e3..5243cc65dd 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -203,6 +203,16 @@ abstract class RevisionItemBase { return false; } + /** + * Get the DB field name storing actor ids. + * Override this function. + * @since 1.31 + * @return bool + */ + public function getAuthorActorField() { + return false; + } + /** * Get the ID, as it would appear in the ids URL parameter * @return int @@ -257,6 +267,16 @@ abstract class RevisionItemBase { return strval( $this->row->$field ); } + /** + * Get the author actor ID + * @since 1.31 + * @return string + */ + public function getAuthorActor() { + $field = $this->getAuthorActorField(); + return strval( $this->row->$field ); + } + /** * Returns true if the current user can view the item */