Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115989054
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
Wed, Jun 4, 07:40
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jun 6, 07:40 (2 d)
Engine
blob
Format
Raw Data
Handle
26550768
Attached To
rPH Phabricator
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
->
addTextCrumb
(
'Config'
,
$this
->
getApplicationURI
());
$crumbs
->
addTextCrumb
(
$title
,
'/config/history/'
);
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'history/'
);
$view
=
id
(
new
PHUITwoColumnView
())
->
setNavigation
(
$nav
)
->
setMainColumn
(
array
(
$timeline
,
));
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
setCrumbs
(
$crumbs
)
->
appendChild
(
$view
);
}
}
Event Timeline
Log In to Comment