2011-08-14 22:55:30 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DifferentialRevisionStatusFieldSpecification
|
|
|
|
extends DifferentialFieldSpecification {
|
|
|
|
|
|
|
|
public function shouldAppearOnRevisionView() {
|
2012-12-11 23:59:27 +01:00
|
|
|
return false;
|
2011-08-14 22:55:30 +02:00
|
|
|
}
|
|
|
|
|
2012-02-20 14:38:21 +01:00
|
|
|
public function shouldAppearOnRevisionList() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function renderHeaderForRevisionList() {
|
|
|
|
return 'Status';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function renderValueForRevisionList(DifferentialRevision $revision) {
|
|
|
|
return ArcanistDifferentialRevisionStatus::getNameForRevisionStatus(
|
|
|
|
$revision->getStatus());
|
|
|
|
}
|
|
|
|
|
2011-08-14 22:55:30 +02:00
|
|
|
}
|