Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106775330
PhabricatorIndexEngine.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
Mon, Mar 31, 11:20
Size
451 B
Mime Type
text/x-php
Expires
Wed, Apr 2, 11:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25272108
Attached To
rPH Phabricator
PhabricatorIndexEngine.php
View Options
<?php
final
class
PhabricatorIndexEngine
extends
Phobject
{
public
function
indexDocumentByPHID
(
$phid
,
$context
)
{
$indexers
=
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
'PhabricatorSearchDocumentIndexer'
)
->
execute
();
foreach
(
$indexers
as
$indexer
)
{
if
(
$indexer
->
shouldIndexDocumentByPHID
(
$phid
))
{
$indexer
->
indexDocumentByPHID
(
$phid
,
$context
);
break
;
}
}
return
$this
;
}
}
Event Timeline
Log In to Comment