Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83129421
ConduitAPI_differential_Method.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
Sun, Sep 15, 08:58
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Sep 17, 08:58 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20797476
Attached To
rPH Phabricator
ConduitAPI_differential_Method.php
View Options
<?php
/**
* @group conduit
*/
abstract
class
ConduitAPI_differential_Method
extends
ConduitAPIMethod
{
protected
function
buildDiffInfoDictionary
(
DifferentialDiff
$diff
)
{
$uri
=
'/differential/diff/'
.
$diff
->
getID
().
'/'
;
$uri
=
PhabricatorEnv
::
getProductionURI
(
$uri
);
return
array
(
'id'
=>
$diff
->
getID
(),
'uri'
=>
$uri
,
);
}
protected
function
buildInlineInfoDictionary
(
DifferentialInlineComment
$inline
,
DifferentialChangeset
$changeset
=
null
)
{
$file_path
=
null
;
$diff_id
=
null
;
if
(
$changeset
)
{
$file_path
=
$inline
->
getIsNewFile
()
?
$changeset
->
getFilename
()
:
$changeset
->
getOldFile
();
$diff_id
=
$changeset
->
getDiffID
();
}
return
array
(
'id'
=>
$inline
->
getID
(),
'authorPHID'
=>
$inline
->
getAuthorPHID
(),
'filePath'
=>
$file_path
,
'isNewFile'
=>
$inline
->
getIsNewFile
(),
'lineNumber'
=>
$inline
->
getLineNumber
(),
'lineLength'
=>
$inline
->
getLineLength
(),
'diffID'
=>
$diff_id
,
'content'
=>
$inline
->
getContent
(),
);
}
}
Event Timeline
Log In to Comment