[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorApplicationTransactionDetailController 4 extends PhabricatorApplicationTransactionController { 5 6 private $phid; 7 8 public function shouldAllowPublic() { 9 return true; 10 } 11 12 public function willProcessRequest(array $data) { 13 $this->phid = $data['phid']; 14 } 15 16 public function processRequest() { 17 $request = $this->getRequest(); 18 $viewer = $request->getUser(); 19 20 $xaction = id(new PhabricatorObjectQuery()) 21 ->withPHIDs(array($this->phid)) 22 ->setViewer($viewer) 23 ->executeOne(); 24 if (!$xaction) { 25 return new Aphront404Response(); 26 } 27 28 $details = $xaction->renderChangeDetails($viewer); 29 30 $cancel_uri = $this->guessCancelURI($viewer, $xaction); 31 $dialog = id(new AphrontDialogView()) 32 ->setUser($viewer) 33 ->setTitle(pht('Change Details')) 34 ->setWidth(AphrontDialogView::WIDTH_FULL) 35 ->setFlush(true) 36 ->appendChild($details) 37 ->addCancelButton($cancel_uri); 38 39 return id(new AphrontDialogResponse())->setDialog($dialog); 40 } 41 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |