Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3282181
ArcanistRepositoryRemoteQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Mon, Mar 24, 05:48 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114534
Default Alt Text
ArcanistRepositoryRemoteQuery.php (702 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment