Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98208179
DrydockResourceStatus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 11, 01:54
Size
597 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 01:54 (2 d)
Engine
blob
Format
Raw Data
Handle
23532229
Attached To
rPH Phabricator
DrydockResourceStatus.php
View Options
<?php
final
class
DrydockResourceStatus
extends
DrydockConstants
{
const
STATUS_PENDING
=
0
;
const
STATUS_OPEN
=
1
;
const
STATUS_CLOSED
=
2
;
const
STATUS_BROKEN
=
3
;
const
STATUS_DESTROYED
=
4
;
public
static
function
getNameForStatus
(
$status
)
{
static
$map
=
array
(
self
::
STATUS_PENDING
=>
'Pending'
,
self
::
STATUS_OPEN
=>
'Open'
,
self
::
STATUS_CLOSED
=>
'Closed'
,
self
::
STATUS_BROKEN
=>
'Broken'
,
self
::
STATUS_DESTROYED
=>
'Destroyed'
,
);
return
idx
(
$map
,
$status
,
'Unknown'
);
}
}
Event Timeline
Log In to Comment