Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96243344
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
Tue, Dec 24, 02:31
Size
451 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 02:31 (2 d)
Engine
blob
Format
Raw Data
Handle
23147705
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