Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120890345
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
Mon, Jul 7, 16:56
Size
719 B
Mime Type
text/x-php
Expires
Wed, Jul 9, 16:56 (2 d)
Engine
blob
Format
Raw Data
Handle
27211472
Attached To
rPH Phabricator
ConduitAPI_diffusion_commitparentsquery_Method.php
View Options
<?php
final
class
ConduitAPI_diffusion_commitparentsquery_Method
extends
ConduitAPI_diffusion_abstractquery_Method
{
public
function
getMethodDescription
()
{
return
pht
(
"Get the commit identifiers for a commit's parent or parents."
);
}
public
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