Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93895700
AphrontReloadResponse.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
Mon, Dec 2, 08:19
Size
534 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 08:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22720860
Attached To
rPH Phabricator
AphrontReloadResponse.php
View Options
<?php
/**
* When actions happen over a JX.Workflow, we may want to reload the page
* if the action is javascript-driven but redirect if it isn't. This preserves
* query parameters in the javascript case. A reload response behaves like
* a redirect response but causes a page reload when received via workflow.
*/
final
class
AphrontReloadResponse
extends
AphrontRedirectResponse
{
public
function
getURI
()
{
if
(
$this
->
getRequest
()->
isAjax
())
{
return
null
;
}
else
{
return
parent
::
getURI
();
}
}
}
Event Timeline
Log In to Comment