Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65526872
ConduitAPI_conduit_query_Method.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
Tue, Jun 4, 10:38
Size
972 B
Mime Type
text/x-php
Expires
Thu, Jun 6, 10:38 (2 d)
Engine
blob
Format
Raw Data
Handle
18087388
Attached To
rPH Phabricator
ConduitAPI_conduit_query_Method.php
View Options
<?php
/**
* @group conduit
*/
final
class
ConduitAPI_conduit_query_Method
extends
ConduitAPIMethod
{
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