Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F540187
PhabricatorProjectStatus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
PhabricatorProjectStatus.php
View Options
<?php
final
class
PhabricatorProjectStatus
extends
Phobject
{
const
STATUS_ACTIVE
=
0
;
const
STATUS_ARCHIVED
=
100
;
public
static
function
getNameForStatus
(
$status
)
{
$map
=
array
(
self
::
STATUS_ACTIVE
=>
pht
(
'Active'
),
self
::
STATUS_ARCHIVED
=>
pht
(
'Archived'
),
);
return
idx
(
$map
,
coalesce
(
$status
,
'?'
),
pht
(
'Unknown'
));
}
public
static
function
getStatusMap
()
{
return
array
(
self
::
STATUS_ACTIVE
=>
pht
(
'Active'
),
self
::
STATUS_ARCHIVED
=>
pht
(
'Archived'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:28 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
99149
Default Alt Text
PhabricatorProjectStatus.php (545 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment