Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105527512
DiffusionCommitResultBucket.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, Mar 17, 20:46
Size
679 B
Mime Type
text/x-php
Expires
Wed, Mar 19, 20:46 (2 d)
Engine
blob
Format
Raw Data
Handle
24998626
Attached To
rPH Phabricator
DiffusionCommitResultBucket.php
View Options
<?php
abstract
class
DiffusionCommitResultBucket
extends
PhabricatorSearchResultBucket
{
public
static
function
getAllResultBuckets
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getResultBucketKey'
)
->
execute
();
}
protected
function
hasAuditorsWithStatus
(
PhabricatorRepositoryCommit
$commit
,
array
$phids
,
array
$statuses
)
{
foreach
(
$commit
->
getAudits
()
as
$audit
)
{
if
(!
isset
(
$phids
[
$audit
->
getAuditorPHID
()]))
{
continue
;
}
if
(!
isset
(
$statuses
[
$audit
->
getAuditStatus
()]))
{
continue
;
}
return
true
;
}
return
false
;
}
}
Event Timeline
Log In to Comment