Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F543701
DiffusionBlameConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
982 B
Referenced Files
None
Subscribers
None
DiffusionBlameConduitAPIMethod.php
View Options
<?php
final
class
DiffusionBlameConduitAPIMethod
extends
DiffusionQueryConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'diffusion.blame'
;
}
public
function
getMethodDescription
()
{
return
pht
(
'Get blame information for a list of paths.'
);
}
protected
function
defineReturnType
()
{
return
'map<string, wild>'
;
}
protected
function
defineCustomParamTypes
()
{
return
array
(
'paths'
=>
'required list<string>'
,
'commit'
=>
'required string'
,
'timeout'
=>
'optional int'
,
);
}
protected
function
getResult
(
ConduitAPIRequest
$request
)
{
$drequest
=
$this
->
getDiffusionRequest
();
$paths
=
$request
->
getValue
(
'paths'
);
$blame_query
=
DiffusionBlameQuery
::
newFromDiffusionRequest
(
$drequest
)
->
setPaths
(
$paths
);
$timeout
=
$request
->
getValue
(
'timeout'
);
if
(
$timeout
)
{
$blame_query
->
setTimeout
(
$timeout
);
}
$blame
=
$blame_query
->
execute
();
return
$blame
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 11:23 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
106167
Default Alt Text
DiffusionBlameConduitAPIMethod.php (982 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment