Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102519541
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
Fri, Feb 21, 14:16
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 23, 14:16 (2 d)
Engine
blob
Format
Raw Data
Handle
24339544
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
)
->
setReversePaging
(
false
)
->
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
->
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