Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108456381
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, Apr 16, 21:48
Size
679 B
Mime Type
text/x-php
Expires
Fri, Apr 18, 21:48 (2 d)
Engine
blob
Format
Raw Data
Handle
25609825
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