Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81110658
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
Wed, Sep 4, 06:21
Size
679 B
Mime Type
text/x-php
Expires
Fri, Sep 6, 06:21 (2 d)
Engine
blob
Format
Raw Data
Handle
20515488
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