Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101615671
PhabricatorChangesetResponse.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
Wed, Feb 12, 02:49
Size
947 B
Mime Type
text/x-php
Expires
Fri, Feb 14, 02:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24197686
Attached To
rPH Phabricator
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
);
}
}
Event Timeline
Log In to Comment