r75430 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75429‎ | r75430 | r75431 >
Date:15:27, 26 October 2010
Author:catrope
Status:ok
Tags:
Comment:
Add forgotten file in r75327
Modified paths:
  • /trunk/extensions/CodeReview/backend/CodeSignoff.php (added) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/backend/CodeSignoff.php
@@ -0,0 +1,21 @@
 2+<?php
 3+class CodeSignoff {
 4+ public $rev, $user, $flag, $timestamp;
 5+
 6+ public function __construct( $rev, $user, $flag, $timestamp ) {
 7+ $this->rev = $rev;
 8+ $this->user = $user;
 9+ $this->flag = $flag;
 10+ $this->timestamp = $timestamp;
 11+ }
 12+
 13+ public static function newFromRow( $rev, $row ) {
 14+ return self::newFromData( $rev, get_object_vars( $row ) );
 15+ }
 16+
 17+ public static function newFromData( $rev, $data ) {
 18+ return new self( $rev, $data['cs_user_text'], $data['cs_flag'],
 19+ wfTimestamp( TS_MW, $data['cs_timestamp'] )
 20+ );
 21+ }
 22+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75327CodeReview: (bug 24380) Add sign-off feature where any coder can sign off on ...catrope18:16, 24 October 2010

Status & tagging log