2012-02-28 21:06:34 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorAuditCommitStatusConstants {
|
|
|
|
|
|
|
|
const NONE = 0;
|
|
|
|
const NEEDS_AUDIT = 1;
|
|
|
|
const CONCERN_RAISED = 2;
|
|
|
|
const PARTIALLY_AUDITED = 3;
|
|
|
|
const FULLY_AUDITED = 4;
|
|
|
|
|
|
|
|
public static function getStatusNameMap() {
|
2013-05-18 10:49:37 -07:00
|
|
|
$map = array(
|
|
|
|
self::NONE => pht('None'),
|
|
|
|
self::NEEDS_AUDIT => pht('Audit Required'),
|
|
|
|
self::CONCERN_RAISED => pht('Concern Raised'),
|
|
|
|
self::PARTIALLY_AUDITED => pht('Partially Audited'),
|
|
|
|
self::FULLY_AUDITED => pht('Audited'),
|
2012-02-28 21:06:34 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
return $map;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function getStatusName($code) {
|
|
|
|
return idx(self::getStatusNameMap(), $code, 'Unknown');
|
|
|
|
}
|
|
|
|
|
2013-02-28 07:55:06 -08:00
|
|
|
public static function getOpenStatusConstants() {
|
|
|
|
return array(
|
|
|
|
self::CONCERN_RAISED,
|
|
|
|
self::NEEDS_AUDIT,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2012-02-28 21:06:34 -08:00
|
|
|
}
|