Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90801126
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, Nov 4, 21:33
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Nov 6, 21:33 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22123604
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
();
$timeline
=
id
(
new
PhabricatorApplicationTransactionView
())
->
setViewer
(
$viewer
)
->
setTransactions
(
$xactions
)
->
setRenderAsFeed
(
true
)
->
setObjectPHID
(
PhabricatorPHIDConstants
::
PHID_VOID
);
$timeline
->
setShouldTerminate
(
true
);
$title
=
pht
(
'Settings History'
);
$header
=
$this
->
buildHeaderView
(
$title
);
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'history/'
);
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
$title
)
->
setBorder
(
true
);
$content
=
id
(
new
PHUITwoColumnView
())
->
setHeader
(
$header
)
->
setNavigation
(
$nav
)
->
setFixed
(
true
)
->
setMainColumn
(
$timeline
);
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
setCrumbs
(
$crumbs
)
->
appendChild
(
$content
);
}
}
Event Timeline
Log In to Comment