Page MenuHomePhorge

PhabricatorApplicationTransactionController.php
No OneTemporary

Size
802 B
Referenced Files
None
Subscribers
None

PhabricatorApplicationTransactionController.php

<?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;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 8:50 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
119975
Default Alt Text
PhabricatorApplicationTransactionController.php (802 B)

Event Timeline