[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * When actions happen over a JX.Workflow, we may want to reload the page 5 * if the action is javascript-driven but redirect if it isn't. This preserves 6 * query parameters in the javascript case. A reload response behaves like 7 * a redirect response but causes a page reload when received via workflow. 8 */ 9 final class AphrontReloadResponse extends AphrontRedirectResponse { 10 11 public function getURI() { 12 if ($this->getRequest()->isAjax()) { 13 return null; 14 } else { 15 return parent::getURI(); 16 } 17 } 18 19 }
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 |