Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98508929
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, Jan 13, 20:42
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jan 15, 20:42 (2 d)
Engine
blob
Format
Raw Data
Handle
23592548
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
->
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
,
));
}
}
Event Timeline
Log In to Comment