Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852705
ConduitQueryConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1015 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
'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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:48 (1 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1768526
Default Alt Text
ConduitQueryConduitAPIMethod.php (1015 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment