Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/constants/ManiphestTaskStatus.php
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | public static function isOpenStatus($status) { | ||||
foreach (self::getOpenStatusConstants() as $constant) { | foreach (self::getOpenStatusConstants() as $constant) { | ||||
if ($status == $constant) { | if ($status == $constant) { | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
public static function isClaimStatus($status) { | |||||
return self::getStatusAttribute($status, 'claim', true); | |||||
} | |||||
public static function isClosedStatus($status) { | public static function isClosedStatus($status) { | ||||
return !self::isOpenStatus($status); | return !self::isOpenStatus($status); | ||||
} | } | ||||
public static function getStatusActionName($status) { | public static function getStatusActionName($status) { | ||||
return self::getStatusAttribute($status, 'name.action'); | return self::getStatusAttribute($status, 'name.action'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | foreach ($config as $key => $value) { | ||||
'special' => 'optional string', | 'special' => 'optional string', | ||||
'transaction.icon' => 'optional string', | 'transaction.icon' => 'optional string', | ||||
'transaction.color' => 'optional string', | 'transaction.color' => 'optional string', | ||||
'silly' => 'optional bool', | 'silly' => 'optional bool', | ||||
'prefixes' => 'optional list<string>', | 'prefixes' => 'optional list<string>', | ||||
'suffixes' => 'optional list<string>', | 'suffixes' => 'optional list<string>', | ||||
'keywords' => 'optional list<string>', | 'keywords' => 'optional list<string>', | ||||
'disabled' => 'optional bool', | 'disabled' => 'optional bool', | ||||
'claim' => 'optional bool', | |||||
)); | )); | ||||
} | } | ||||
$special_map = array(); | $special_map = array(); | ||||
foreach ($config as $key => $value) { | foreach ($config as $key => $value) { | ||||
$special = idx($value, 'special'); | $special = idx($value, 'special'); | ||||
if (!$special) { | if (!$special) { | ||||
continue; | continue; | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |