Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950584
DrydockResourceStatus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
826 B
Referenced Files
None
Subscribers
None
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
)
{
$map
=
array
(
self
::
STATUS_PENDING
=>
pht
(
'Pending'
),
self
::
STATUS_OPEN
=>
pht
(
'Open'
),
self
::
STATUS_CLOSED
=>
pht
(
'Closed'
),
self
::
STATUS_BROKEN
=>
pht
(
'Broken'
),
self
::
STATUS_DESTROYED
=>
pht
(
'Destroyed'
),
);
return
idx
(
$map
,
$status
,
pht
(
'Unknown'
));
}
public
static
function
getAllStatuses
()
{
return
array
(
self
::
STATUS_PENDING
,
self
::
STATUS_OPEN
,
self
::
STATUS_CLOSED
,
self
::
STATUS_BROKEN
,
self
::
STATUS_DESTROYED
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 2:10 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224228
Default Alt Text
DrydockResourceStatus.php (826 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment