Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102369865
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
Thu, Feb 20, 00:24
Size
979 B
Mime Type
text/x-php
Expires
Sat, Feb 22, 00:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24340442
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
)
->
setFlush
(
true
)
->
appendChild
(
$details
)
->
addCancelButton
(
$cancel_uri
);
return
id
(
new
AphrontDialogResponse
())->
setDialog
(
$dialog
);
}
}
Event Timeline
Log In to Comment