Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891632
ArcanistDifferentialRevisionStatus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
820 B
Referenced Files
None
Subscribers
None
ArcanistDifferentialRevisionStatus.php
View Options
<?php
final
class
ArcanistDifferentialRevisionStatus
extends
Phobject
{
const
NEEDS_REVIEW
=
0
;
const
NEEDS_REVISION
=
1
;
const
ACCEPTED
=
2
;
const
CLOSED
=
3
;
const
ABANDONED
=
4
;
const
CHANGES_PLANNED
=
5
;
const
IN_PREPARATION
=
6
;
public
static
function
getNameForRevisionStatus
(
$status
)
{
$map
=
array
(
self
::
NEEDS_REVIEW
=>
pht
(
'Needs Review'
)
,
self
::
NEEDS_REVISION
=>
pht
(
'Needs Revision'
)
,
self
::
ACCEPTED
=>
pht
(
'Accepted'
)
,
self
::
CLOSED
=>
pht
(
'Closed'
)
,
self
::
ABANDONED
=>
pht
(
'Abandoned'
)
,
self
::
CHANGES_PLANNED
=>
pht
(
'Changes Planned'
)
,
self
::
IN_PREPARATION
=>
pht
(
'In Preparation'
)
,
)
;
return
idx
(
$map
,
coalesce
(
$status
,
'?'
)
,
pht
(
'Unknown'
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:30 (3 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115163
Default Alt Text
ArcanistDifferentialRevisionStatus.php (820 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment