Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93585426
DiffusionCommitParentsQueryConduitAPIMethod.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, Nov 29, 22:58
Size
795 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 22:58 (2 d)
Engine
blob
Format
Raw Data
Handle
22667986
Attached To
rPH Phabricator
DiffusionCommitParentsQueryConduitAPIMethod.php
View Options
<?php
final
class
DiffusionCommitParentsQueryConduitAPIMethod
extends
DiffusionQueryConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'diffusion.commitparentsquery'
;
}
public
function
getMethodDescription
()
{
return
pht
(
"Get the commit identifiers for a commit's parent or parents."
);
}
protected
function
defineReturnType
()
{
return
'list<string>'
;
}
protected
function
defineCustomParamTypes
()
{
return
array
(
'commit'
=>
'required string'
,
);
}
protected
function
getResult
(
ConduitAPIRequest
$request
)
{
$repository
=
$this
->
getRepository
(
$request
);
return
id
(
new
DiffusionLowLevelParentsQuery
())
->
setRepository
(
$repository
)
->
withIdentifier
(
$request
->
getValue
(
'commit'
))
->
execute
();
}
}
Event Timeline
Log In to Comment