Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103110448
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
Thu, Feb 27, 08:58
Size
947 B
Mime Type
text/x-php
Expires
Sat, Mar 1, 08:58 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
24501027
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