Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98178063
PhabricatorProjectStatus.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
Fri, Jan 10, 18:04
Size
528 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 18:04 (2 d)
Engine
blob
Format
Raw Data
Handle
23528415
Attached To
rPH Phabricator
PhabricatorProjectStatus.php
View Options
<?php
final
class
PhabricatorProjectStatus
{
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'
),
);
}
}
Event Timeline
Log In to Comment