Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106650133
PhabricatorApplicationTransactionDetailController.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
Sat, Mar 29, 09:39
Size
956 B
Mime Type
text/x-php
Expires
Mon, Mar 31, 10:39 (2 d)
Engine
blob
Format
Raw Data
Handle
25244755
Attached To
rPH Phabricator
PhabricatorApplicationTransactionDetailController.php
View Options
<?php
final
class
PhabricatorApplicationTransactionDetailController
extends
PhabricatorApplicationTransactionController
{
private
$phid
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
phid
=
$data
[
'phid'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$xaction
=
id
(
new
PhabricatorObjectQuery
())
->
withPHIDs
(
array
(
$this
->
phid
))
->
setViewer
(
$viewer
)
->
executeOne
();
if
(!
$xaction
)
{
return
new
Aphront404Response
();
}
$details
=
$xaction
->
renderChangeDetails
(
$viewer
);
$cancel_uri
=
$this
->
guessCancelURI
(
$viewer
,
$xaction
);
$dialog
=
id
(
new
AphrontDialogView
())
->
setUser
(
$viewer
)
->
setTitle
(
pht
(
'Change Details'
))
->
setWidth
(
AphrontDialogView
::
WIDTH_FULL
)
->
appendChild
(
$details
)
->
addCancelButton
(
$cancel_uri
);
return
id
(
new
AphrontDialogResponse
())->
setDialog
(
$dialog
);
}
}
Event Timeline
Log In to Comment