Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100976161
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
Tue, Feb 4, 11:22
Size
597 B
Mime Type
text/x-php
Expires
Thu, Feb 6, 11:22 (2 d)
Engine
blob
Format
Raw Data
Handle
24046095
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