Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96119242
PhabricatorDaemonLogEventViewController.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, 20:17
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 24, 20:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23126208
Attached To
rPH Phabricator
PhabricatorDaemonLogEventViewController.php
View Options
<?php
final
class
PhabricatorDaemonLogEventViewController
extends
PhabricatorDaemonController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$event
=
id
(
new
PhabricatorDaemonLogEvent
())->
load
(
$this
->
id
);
if
(!
$event
)
{
return
new
Aphront404Response
();
}
$event_view
=
id
(
new
PhabricatorDaemonLogEventsView
())
->
setEvents
(
array
(
$event
))
->
setUser
(
$request
->
getUser
())
->
setCombinedLog
(
true
)
->
setShowFullMessage
(
true
);
$log_panel
=
new
AphrontPanelView
();
$log_panel
->
appendChild
(
$event_view
);
$log_panel
->
setNoBackground
();
$daemon_id
=
$event
->
getLogID
();
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
pht
(
'Daemon %s'
,
$daemon_id
),
$this
->
getApplicationURI
(
"log/{$daemon_id}/"
))
->
addTextCrumb
(
pht
(
'Event %s'
,
$event
->
getID
()));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$log_panel
,
),
array
(
'title'
=>
pht
(
'Combined Daemon Log'
),
));
}
}
Event Timeline
Log In to Comment