Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96117565
PhabricatorProjectHistoryController.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
Sun, Dec 22, 19:40
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 24, 19:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23125505
Attached To
rPH Phabricator
PhabricatorProjectHistoryController.php
View Options
<?php
final
class
PhabricatorProjectHistoryController
extends
PhabricatorProjectController
{
private
$id
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$id
=
$this
->
id
;
$project
=
id
(
new
PhabricatorProjectQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$project
)
{
return
new
Aphront404Response
();
}
$xactions
=
id
(
new
PhabricatorProjectTransactionQuery
())
->
setViewer
(
$viewer
)
->
withObjectPHIDs
(
array
(
$project
->
getPHID
()))
->
execute
();
$timeline
=
id
(
new
PhabricatorApplicationTransactionView
())
->
setUser
(
$viewer
)
->
setObjectPHID
(
$project
->
getPHID
())
->
setTransactions
(
$xactions
);
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
$project
->
getName
(),
$this
->
getApplicationURI
(
"view/{$id}/"
))
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
$project
->
getName
(),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment