Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12661605
ArcanistRepositoryRemoteQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
702 B
Referenced Files
None
Subscribers
None
ArcanistRepositoryRemoteQuery.php
View Options
<?php
abstract
class
ArcanistRepositoryRemoteQuery
extends
ArcanistRepositoryQuery
{
private
$names
;
final
public
function
withNames
(
array
$names
)
{
$this
->
names
=
$names
;
return
$this
;
}
final
public
function
execute
()
{
$api
=
$this
->
getRepositoryAPI
();
$refs
=
$this
->
newRemoteRefs
();
foreach
(
$refs
as
$ref
)
{
$ref
->
setRepositoryAPI
(
$api
);
}
$names
=
$this
->
names
;
if
(
$names
!==
null
)
{
$names
=
array_fuse
(
$names
);
foreach
(
$refs
as
$key
=>
$ref
)
{
if
(!
isset
(
$names
[
$ref
->
getRemoteName
()]))
{
unset
(
$refs
[
$key
]);
}
}
}
return
$refs
;
}
abstract
protected
function
newRemoteRefs
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:47 (17 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1078376
Default Alt Text
ArcanistRepositoryRemoteQuery.php (702 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment