Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91514727
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
Mon, Nov 11, 19:59
Size
545 B
Mime Type
text/x-php
Expires
Wed, Nov 13, 19:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22276559
Attached To
rPH Phabricator
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'
),
);
}
}
Event Timeline
Log In to Comment