Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18921243
DiffusionBlameConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
Tue, Nov 11, 1:54 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8222049
Default Alt Text
DiffusionBlameConduitAPIMethod.php (982 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment