Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F107051829
ConduitAPI_diffusion_commitparentsquery_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
Fri, Apr 4, 00:33
Size
704 B
Mime Type
text/x-php
Expires
Sun, Apr 6, 00:33 (2 d)
Engine
blob
Format
Raw Data
Handle
25341779
Attached To
rPH Phabricator
ConduitAPI_diffusion_commitparentsquery_Method.php
View Options
<?php
/**
* @group conduit
*/
final
class
ConduitAPI_diffusion_commitparentsquery_Method
extends
ConduitAPI_diffusion_abstractquery_Method
{
public
function
getMethodDescription
()
{
return
'Commit parent(s) information for a commit in a repository.'
;
}
public
function
defineReturnType
()
{
return
'array'
;
}
protected
function
defineCustomParamTypes
()
{
return
array
(
'commit'
=>
'required string'
,
);
}
protected
function
getResult
(
ConduitAPIRequest
$request
)
{
$drequest
=
$this
->
getDiffusionRequest
();
$query
=
DiffusionCommitParentsQuery
::
newFromDiffusionRequest
(
$drequest
);
$parents
=
$query
->
loadParents
();
return
$parents
;
}
}
Event Timeline
Log In to Comment