Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112767251
PhabricatorConfigHistoryController.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
Mon, May 12, 21:42
Size
1 KB
Mime Type
text/x-php
Expires
Wed, May 14, 21:42 (2 d)
Engine
blob
Format
Raw Data
Handle
26092504
Attached To
rPH Phabricator
PhabricatorConfigHistoryController.php
View Options
<?php
final
class
PhabricatorConfigHistoryController
extends
PhabricatorConfigController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$xactions
=
id
(
new
PhabricatorConfigTransactionQuery
())
->
setViewer
(
$user
)
->
needComments
(
true
)
->
execute
();
$object
=
new
PhabricatorConfigEntry
();
$xaction
=
$object
->
getApplicationTransactionTemplate
();
$view
=
$xaction
->
getApplicationTransactionViewObject
();
$timeline
=
$view
->
setUser
(
$user
)
->
setTransactions
(
$xactions
)
->
setRenderAsFeed
(
true
)
->
setObjectPHID
(
PhabricatorPHIDConstants
::
PHID_VOID
);
$timeline
->
setShouldTerminate
(
true
);
$object
->
willRenderTimeline
(
$timeline
,
$this
->
getRequest
());
$title
=
pht
(
'Settings History'
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
setBorder
(
true
);
$crumbs
->
addTextCrumb
(
'Config'
,
$this
->
getApplicationURI
());
$crumbs
->
addTextCrumb
(
$title
,
'/config/history/'
);
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'history/'
);
$nav
->
setCrumbs
(
$crumbs
);
$nav
->
appendChild
(
$timeline
);
return
$this
->
buildApplicationPage
(
array
(
$nav
,
),
array
(
'title'
=>
$title
,
));
}
}
Event Timeline
Log In to Comment