Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852479
DiffusionCommitParentsQueryConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
795 B
Referenced Files
None
Subscribers
None
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
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:35 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1752645
Default Alt Text
DiffusionCommitParentsQueryConduitAPIMethod.php (795 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment