Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67318260
PhabricatorApplicationTransactionController.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
Fri, Jun 21, 18:43
Size
802 B
Mime Type
text/x-php
Expires
Sun, Jun 23, 18:43 (2 d)
Engine
blob
Format
Raw Data
Handle
18338622
Attached To
rPH Phabricator
PhabricatorApplicationTransactionController.php
View Options
<?php
abstract
class
PhabricatorApplicationTransactionController
extends
PhabricatorController
{
protected
function
guessCancelURI
(
PhabricatorUser
$viewer
,
PhabricatorApplicationTransaction
$xaction
)
{
// Take an educated guess at the URI where the transactions appear so we
// can send the cancel button somewhere sensible. This won't always get the
// best answer (for example, Diffusion's history is visible on a page other
// than the main object view page) but should always get a reasonable one.
$cancel_uri
=
'/'
;
$handle
=
id
(
new
PhabricatorHandleQuery
())
->
setViewer
(
$viewer
)
->
withPHIDs
(
array
(
$xaction
->
getObjectPHID
()))
->
executeOne
();
if
(
$handle
)
{
$cancel_uri
=
$handle
->
getURI
();
}
return
$cancel_uri
;
}
}
Event Timeline
Log In to Comment