Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108078805
DiffusionRawDiffQuery.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, Apr 14, 00:44
Size
1014 B
Mime Type
text/x-php
Expires
Wed, Apr 16, 00:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25518440
Attached To
rPH Phabricator
DiffusionRawDiffQuery.php
View Options
<?php
abstract
class
DiffusionRawDiffQuery
extends
DiffusionFileFutureQuery
{
private
$linesOfContext
=
65535
;
private
$anchorCommit
;
private
$againstCommit
;
final
public
static
function
newFromDiffusionRequest
(
DiffusionRequest
$request
)
{
return
parent
::
newQueryObject
(
__CLASS__
,
$request
);
}
final
public
function
setLinesOfContext
(
$lines_of_context
)
{
$this
->
linesOfContext
=
$lines_of_context
;
return
$this
;
}
final
public
function
getLinesOfContext
()
{
return
$this
->
linesOfContext
;
}
final
public
function
setAgainstCommit
(
$value
)
{
$this
->
againstCommit
=
$value
;
return
$this
;
}
final
public
function
getAgainstCommit
()
{
return
$this
->
againstCommit
;
}
public
function
setAnchorCommit
(
$anchor_commit
)
{
$this
->
anchorCommit
=
$anchor_commit
;
return
$this
;
}
public
function
getAnchorCommit
()
{
if
(
$this
->
anchorCommit
)
{
return
$this
->
anchorCommit
;
}
return
$this
->
getRequest
()->
getStableCommit
();
}
}
Event Timeline
Log In to Comment