Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106764667
ConduitQueryConduitAPIMethod.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, Mar 31, 07:13
Size
924 B
Mime Type
text/x-php
Expires
Wed, Apr 2, 07:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25269529
Attached To
rPH Phabricator
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>'
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$classes
=
id
(
new
PhutilSymbolLoader
())
->
setAncestorClass
(
'ConduitAPIMethod'
)
->
setType
(
'class'
)
->
loadObjects
();
$names_to_params
=
array
();
foreach
(
$classes
as
$class
)
{
$names_to_params
[
$class
->
getAPIMethodName
()]
=
array
(
'description'
=>
$class
->
getMethodDescription
(),
'params'
=>
$class
->
getParamTypes
(),
'return'
=>
$class
->
getReturnType
(),
);
}
return
$names_to_params
;
}
}
Event Timeline
Log In to Comment