Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96116829
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
Sun, Dec 22, 19:21
Size
961 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 19:21 (2 d)
Engine
blob
Format
Raw Data
Handle
23125721
Attached To
rPH Phabricator
PhabricatorDaemonLogListController.php
View Options
<?php
final
class
PhabricatorDaemonLogListController
extends
PhabricatorDaemonController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$pager
=
new
AphrontCursorPagerView
();
$pager
->
readFromRequest
(
$request
);
$logs
=
id
(
new
PhabricatorDaemonLogQuery
())
->
setViewer
(
$viewer
)
->
executeWithCursorPager
(
$pager
);
$daemon_table
=
new
PhabricatorDaemonLogListView
();
$daemon_table
->
setUser
(
$request
->
getUser
());
$daemon_table
->
setDaemonLogs
(
$logs
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'All Daemons'
));
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'log'
);
$nav
->
setCrumbs
(
$crumbs
);
$nav
->
appendChild
(
$daemon_table
);
$nav
->
appendChild
(
$pager
);
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
pht
(
'All Daemons'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment