Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91189930
PonderAnswerStatus.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, Nov 8, 19:39
Size
587 B
Mime Type
text/x-php
Expires
Sun, Nov 10, 19:39 (2 d)
Engine
blob
Format
Raw Data
Handle
22216041
Attached To
rPH Phabricator
PonderAnswerStatus.php
View Options
<?php
final
class
PonderAnswerStatus
extends
PonderConstants
{
const
ANSWER_STATUS_VISIBLE
=
'visible'
;
const
ANSWER_STATUS_HIDDEN
=
'hidden'
;
public
static
function
getAnswerStatusMap
()
{
return
array
(
self
::
ANSWER_STATUS_VISIBLE
=>
pht
(
'Visible'
),
self
::
ANSWER_STATUS_HIDDEN
=>
pht
(
'Hidden'
),
);
}
public
static
function
getAnswerStatusName
(
$status
)
{
$map
=
array
(
self
::
ANSWER_STATUS_VISIBLE
=>
pht
(
'Visible'
),
self
::
ANSWER_STATUS_HIDDEN
=>
pht
(
'Hidden'
),
);
return
idx
(
$map
,
$status
,
pht
(
'Unknown'
));
}
}
Event Timeline
Log In to Comment