Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894079
ArcanistBrowseURIHardpointQuery.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
1 KB
Referenced Files
None
Subscribers
None
ArcanistBrowseURIHardpointQuery.php
View Options
<?php
abstract
class
ArcanistBrowseURIHardpointQuery
extends
ArcanistRuntimeHardpointQuery
{
public
function
getSupportedBrowseType
(
)
{
return
$this
->
getPhobjectClassConstant
(
'BROWSETYPE'
,
32
)
;
}
public
function
getHardpoints
(
)
{
return
array
(
ArcanistBrowseRef
::
HARDPOINT_URIS
,
)
;
}
protected
function
canLoadRef
(
ArcanistRef
$ref
)
{
return
(
$ref
instanceof
ArcanistBrowseRef
)
;
}
public
function
getRefsWithSupportedTypes
(
array
$refs
)
{
$type
=
$this
->
getSupportedBrowseType
(
)
;
foreach
(
$refs
as
$key
=>
$ref
)
{
if
(
$ref
->
isUntyped
(
)
)
{
continue
;
}
if
(
$ref
->
hasType
(
$type
)
)
{
continue
;
}
unset
(
$refs
[
$key
]
)
;
}
return
$refs
;
}
public
static
function
getAllBrowseQueries
(
)
{
return
id
(
new
PhutilClassMapQuery
(
)
)
->
setAncestorClass
(
__CLASS__
)
->
execute
(
)
;
}
final
protected
function
newBrowseURIRef
(
)
{
return
id
(
new
ArcanistBrowseURIRef
(
)
)
->
setType
(
$this
->
getSupportedBrowseType
(
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:21 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115837
Default Alt Text
ArcanistBrowseURIHardpointQuery.php (1 KB)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment