Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98208203
DrydockLeaseStatus.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
665 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 01:54 (2 d)
Engine
blob
Format
Raw Data
Handle
23532049
Attached To
rPH Phabricator
DrydockLeaseStatus.php
View Options
<?php
final
class
DrydockLeaseStatus
extends
DrydockConstants
{
const
STATUS_PENDING
=
0
;
const
STATUS_ACQUIRING
=
5
;
const
STATUS_ACTIVE
=
1
;
const
STATUS_RELEASED
=
2
;
const
STATUS_BROKEN
=
3
;
const
STATUS_EXPIRED
=
4
;
public
static
function
getNameForStatus
(
$status
)
{
static
$map
=
array
(
self
::
STATUS_PENDING
=>
'Pending'
,
self
::
STATUS_ACQUIRING
=>
'Acquiring'
,
self
::
STATUS_ACTIVE
=>
'Active'
,
self
::
STATUS_RELEASED
=>
'Released'
,
self
::
STATUS_BROKEN
=>
'Broken'
,
self
::
STATUS_EXPIRED
=>
'Expired'
,
);
return
idx
(
$map
,
$status
,
'Unknown'
);
}
}
Event Timeline
Log In to Comment