Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110360135
ManiphestPrioritySearchConduitAPIMethod.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, Apr 25, 23:25
Size
957 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 23:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25747538
Attached To
rPH Phabricator
ManiphestPrioritySearchConduitAPIMethod.php
View Options
<?php
final
class
ManiphestPrioritySearchConduitAPIMethod
extends
ManiphestConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'maniphest.priority.search'
;
}
public
function
getMethodSummary
()
{
return
pht
(
'Read information about task priorities.'
);
}
public
function
getMethodDescription
()
{
return
pht
(
'Returns information about the possible priorities for Maniphest '
.
'tasks.'
);
}
protected
function
defineParamTypes
()
{
return
array
();
}
protected
function
defineReturnType
()
{
return
'map<string, wild>'
;
}
public
function
getRequiredScope
()
{
return
self
::
SCOPE_ALWAYS
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$config
=
ManiphestTaskPriority
::
getConfig
();
$results
=
array
();
foreach
(
$config
as
$code
=>
$priority
)
{
$priority
[
'value'
]
=
$code
;
$results
[]
=
$priority
;
}
return
array
(
'data'
=>
$results
);
}
}
Event Timeline
Log In to Comment