Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93000645
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, Nov 25, 12:12
Size
924 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 12:12 (2 d)
Engine
blob
Format
Raw Data
Handle
22555271
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