Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108376742
PhabricatorConduitListController.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, Apr 16, 08:09
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Apr 18, 08:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25563836
Attached To
rPH Phabricator
PhabricatorConduitListController.php
View Options
<?php
/**
* @group conduit
*/
final
class
PhabricatorConduitListController
extends
PhabricatorConduitController
{
public
function
processRequest
()
{
$method_groups
=
$this
->
getMethodFilters
();
$rows
=
array
();
foreach
(
$method_groups
as
$group
=>
$methods
)
{
foreach
(
$methods
as
$info
)
{
switch
(
$info
[
'status'
])
{
case
ConduitAPIMethod
::
METHOD_STATUS_DEPRECATED
:
$status
=
'Deprecated'
;
break
;
case
ConduitAPIMethod
::
METHOD_STATUS_UNSTABLE
:
$status
=
'Unstable'
;
break
;
default
:
$status
=
null
;
break
;
}
$rows
[]
=
array
(
$group
,
phutil_tag
(
'a'
,
array
(
'href'
=>
'/conduit/method/'
.
$info
[
'full_name'
],
),
$info
[
'full_name'
]),
$info
[
'description'
],
$status
,
);
$group
=
null
;
}
}
$table
=
new
AphrontTableView
(
$rows
);
$table
->
setHeaders
(
array
(
'Group'
,
'Name'
,
'Description'
,
'Status'
,
));
$table
->
setColumnClasses
(
array
(
'pri'
,
'pri'
,
'wide'
,
null
,
));
$panel
=
new
AphrontPanelView
();
$panel
->
setHeader
(
'Conduit Methods'
);
$panel
->
appendChild
(
$table
);
$panel
->
setWidth
(
AphrontPanelView
::
WIDTH_FULL
);
$utils
=
new
AphrontPanelView
();
$utils
->
setHeader
(
'Utilities'
);
$utils
->
appendChild
(
'<ul>'
.
'<li><a href="/conduit/log/">Log</a> - Conduit Method Calls</li>'
.
'<li><a href="/conduit/token/">Token</a> - Certificate Install</li>'
.
'</ul>'
);
$utils
->
setWidth
(
AphrontPanelView
::
WIDTH_FULL
);
$this
->
setShowSideNav
(
false
);
return
$this
->
buildStandardPageResponse
(
array
(
$panel
,
$utils
,
),
array
(
'title'
=>
'Conduit Console'
,
));
}
}
Event Timeline
Log In to Comment