Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F432321
PhabricatorConfigHistoryController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConfigHistoryController.php
View Options
<?php
final
class
PhabricatorConfigHistoryController
extends
PhabricatorConfigController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$id
=
$request
->
getURIData
(
'id'
);
$xactions
=
id
(
new
PhabricatorConfigTransactionQuery
())
->
setViewer
(
$viewer
)
->
needComments
(
true
)
->
execute
();
$object
=
new
PhabricatorConfigEntry
();
$xaction
=
$object
->
getApplicationTransactionTemplate
();
$view
=
$xaction
->
getApplicationTransactionViewObject
();
$timeline
=
$view
->
setUser
(
$viewer
)
->
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
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 1:52 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61099
Default Alt Text
PhabricatorConfigHistoryController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment