Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97466449
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, Jan 4, 12:06
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 6, 12:06 (2 d)
Engine
blob
Format
Raw Data
Handle
23413647
Attached To
rPH Phabricator
PhabricatorDaemonLogListController.php
View Options
<?php
final
class
PhabricatorDaemonLogListController
extends
PhabricatorDaemonController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$pager
=
new
AphrontPagerView
();
$pager
->
setOffset
(
$request
->
getInt
(
'page'
));
$clause
=
'1 = 1'
;
$logs
=
id
(
new
PhabricatorDaemonLog
())->
loadAllWhere
(
'%Q ORDER BY id DESC LIMIT %d, %d'
,
$clause
,
$pager
->
getOffset
(),
$pager
->
getPageSize
()
+
1
);
$logs
=
$pager
->
sliceResults
(
$logs
);
$pager
->
setURI
(
$request
->
getRequestURI
(),
'page'
);
$daemon_table
=
new
PhabricatorDaemonLogListView
();
$daemon_table
->
setUser
(
$request
->
getUser
());
$daemon_table
->
setDaemonLogs
(
$logs
);
$daemon_panel
=
new
AphrontPanelView
();
$daemon_panel
->
setHeader
(
'All Daemons'
);
$daemon_panel
->
appendChild
(
$daemon_table
);
$daemon_panel
->
appendChild
(
$pager
);
$daemon_panel
->
setNoBackground
();
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'log'
);
$nav
->
appendChild
(
$daemon_panel
);
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
'All Daemons'
,
));
}
}
Event Timeline
Log In to Comment