Differential D18392 Diff 44233 src/applications/differential/constants/DifferentialRevisionStatus.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/constants/DifferentialRevisionStatus.php
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | foreach ($map as $key => $spec) { | ||||
| $result->key = $key; | $result->key = $key; | ||||
| $result->spec = $spec; | $result->spec = $spec; | ||||
| break; | break; | ||||
| } | } | ||||
| return $result; | return $result; | ||||
| } | } | ||||
| public static function getAll() { | |||||
| $result = array(); | |||||
| foreach (self::getMap() as $key => $spec) { | |||||
| $result[$key] = self::newForStatus($key); | |||||
| } | |||||
| return $result; | |||||
| } | |||||
| private static function getMap() { | private static function getMap() { | ||||
| $close_on_accept = PhabricatorEnv::getEnvConfig( | $close_on_accept = PhabricatorEnv::getEnvConfig( | ||||
| 'differential.close-on-accept'); | 'differential.close-on-accept'); | ||||
| return array( | return array( | ||||
| self::NEEDS_REVIEW => array( | self::NEEDS_REVIEW => array( | ||||
| 'name' => pht('Needs Review'), | 'name' => pht('Needs Review'), | ||||
| 'legacy' => 0, | 'legacy' => 0, | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||