Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F540259
ConduitQueryConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
944 B
Referenced Files
None
Subscribers
None
ConduitQueryConduitAPIMethod.php
View Options
<?php
final
class
ConduitQueryConduitAPIMethod
extends
ConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'conduit.query'
;
}
public
function
getMethodDescription
()
{
return
pht
(
'Returns the parameters of the Conduit methods.'
);
}
protected
function
defineParamTypes
()
{
return
array
();
}
protected
function
defineReturnType
()
{
return
'dict<dict>'
;
}
public
function
getRequiredScope
()
{
return
self
::
SCOPE_ALWAYS
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$methods
=
id
(
new
PhabricatorConduitMethodQuery
())
->
setViewer
(
$request
->
getUser
())
->
execute
();
$map
=
array
();
foreach
(
$methods
as
$method
)
{
$map
[
$method
->
getAPIMethodName
()]
=
array
(
'description'
=>
$method
->
getMethodDescription
(),
'params'
=>
$method
->
getParamTypes
(),
'return'
=>
$method
->
getReturnType
(),
);
}
return
$map
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:31 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
101687
Default Alt Text
ConduitQueryConduitAPIMethod.php (944 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment