Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F538761
PhabricatorApplicationTransactionDetailController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorApplicationTransactionDetailController.php
View Options
<?php
final
class
PhabricatorApplicationTransactionDetailController
extends
PhabricatorApplicationTransactionController
{
private
$objectHandle
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
// Users can end up on this page directly by following links in email,
// so we try to make it somewhat reasonable as a standalone page.
$viewer
=
$this
->
getViewer
();
$phid
=
$request
->
getURIData
(
'phid'
);
$xaction
=
id
(
new
PhabricatorObjectQuery
())
->
withPHIDs
(
array
(
$phid
))
->
setViewer
(
$viewer
)
->
executeOne
();
if
(!
$xaction
)
{
return
new
Aphront404Response
();
}
$details
=
$xaction
->
renderChangeDetails
(
$viewer
);
$object_phid
=
$xaction
->
getObjectPHID
();
$handles
=
$viewer
->
loadHandles
(
array
(
$object_phid
));
$handle
=
$handles
[
$object_phid
];
$this
->
objectHandle
=
$handle
;
$cancel_uri
=
$handle
->
getURI
();
if
(
$request
->
isAjax
())
{
$button_text
=
pht
(
'Done'
);
}
else
{
$button_text
=
pht
(
'Continue'
);
}
return
$this
->
newDialog
()
->
setTitle
(
pht
(
'Change Details'
))
->
setWidth
(
AphrontDialogView
::
WIDTH_FORM
)
->
setClass
(
'aphront-dialog-tab-group'
)
->
appendChild
(
$details
)
->
addCancelButton
(
$cancel_uri
,
$button_text
);
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$handle
=
$this
->
objectHandle
;
if
(
$handle
)
{
$crumbs
->
addTextCrumb
(
$handle
->
getObjectName
(),
$handle
->
getURI
());
}
return
$crumbs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 8:55 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120048
Default Alt Text
PhabricatorApplicationTransactionDetailController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment