Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98038490
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
Wed, Jan 8, 23:20
Size
1015 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 23:20 (2 d)
Engine
blob
Format
Raw Data
Handle
23499892
Attached To
rPH Phabricator
ConduitQueryConduitAPIMethod.php
View Options
<?php
final
class
ConduitQueryConduitAPIMethod
extends
ConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'conduit.query'
;
}
public
function
getMethodDescription
()
{
return
'Returns the parameters of the Conduit methods.'
;
}
public
function
defineParamTypes
()
{
return
array
();
}
public
function
defineReturnType
()
{
return
'dict<dict>'
;
}
public
function
defineErrorTypes
()
{
return
array
();
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$classes
=
id
(
new
PhutilSymbolLoader
())
->
setAncestorClass
(
'ConduitAPIMethod'
)
->
setType
(
'class'
)
->
setConcreteOnly
(
true
)
->
selectSymbolsWithoutLoading
();
$names_to_params
=
array
();
foreach
(
$classes
as
$class
)
{
$method_name
=
$class
[
'name'
];
$obj
=
newv
(
$method_name
,
array
());
$names_to_params
[
$this
->
getAPIMethodNameFromClassName
(
$method_name
)]
=
array
(
'params'
=>
$obj
->
defineParamTypes
());
}
return
$names_to_params
;
}
}
Event Timeline
Log In to Comment