Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F427718
PhabricatorChangesetResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
947 B
Referenced Files
None
Subscribers
None
PhabricatorChangesetResponse.php
View Options
<?php
final
class
PhabricatorChangesetResponse
extends
AphrontProxyResponse
{
private
$renderedChangeset
;
private
$coverage
;
private
$undoTemplates
;
public
function
setRenderedChangeset
(
$rendered_changeset
)
{
$this
->
renderedChangeset
=
$rendered_changeset
;
return
$this
;
}
public
function
setCoverage
(
$coverage
)
{
$this
->
coverage
=
$coverage
;
return
$this
;
}
public
function
setUndoTemplates
(
$undo_templates
)
{
$this
->
undoTemplates
=
$undo_templates
;
return
$this
;
}
protected
function
buildProxy
()
{
return
new
AphrontAjaxResponse
();
}
public
function
reduceProxyResponse
()
{
$content
=
array
(
'changeset'
=>
$this
->
renderedChangeset
,
);
if
(
$this
->
coverage
)
{
$content
[
'coverage'
]
=
$this
->
coverage
;
}
if
(
$this
->
undoTemplates
)
{
$content
[
'undoTemplates'
]
=
$this
->
undoTemplates
;
}
return
$this
->
getProxy
()->
setContent
(
$content
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 5:09 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
58832
Default Alt Text
PhabricatorChangesetResponse.php (947 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment