Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555152
ManiphestPrioritySearchConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
957 B
Referenced Files
None
Subscribers
None
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:25 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
96622
Default Alt Text
ManiphestPrioritySearchConduitAPIMethod.php (957 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment