Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93609179
PhabricatorDaemonLogListController.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
Sat, Nov 30, 03:26
Size
1010 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 03:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22675441
Attached To
rPH Phabricator
PhabricatorDaemonLogListController.php
View Options
<?php
final
class
PhabricatorDaemonLogListController
extends
PhabricatorDaemonController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$pager
=
new
AphrontCursorPagerView
();
$pager
->
readFromRequest
(
$request
);
$logs
=
id
(
new
PhabricatorDaemonLogQuery
())
->
setViewer
(
$viewer
)
->
setAllowStatusWrites
(
true
)
->
executeWithCursorPager
(
$pager
);
$daemon_table
=
id
(
new
PhabricatorDaemonLogListView
())
->
setViewer
(
$viewer
)
->
setDaemonLogs
(
$logs
);
$box
=
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'All Daemons'
))
->
setTable
(
$daemon_table
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'All Daemons'
));
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'log'
);
$nav
->
setCrumbs
(
$crumbs
);
$nav
->
appendChild
(
$box
);
$nav
->
appendChild
(
$pager
);
return
$this
->
newPage
()
->
setTitle
(
pht
(
'All Daemons'
))
->
appendChild
(
$nav
);
}
}
Event Timeline
Log In to Comment