Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99177131
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, Jan 22, 01:10
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 24, 01:10 (2 d)
Engine
blob
Format
Raw Data
Handle
23715255
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'
);
$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