Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F974150
PholioSearchIndexer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
910 B
Referenced Files
None
Subscribers
None
PholioSearchIndexer.php
View Options
<?php
/**
* @group pholio
*/
final
class
PholioSearchIndexer
extends
PhabricatorSearchDocumentIndexer
{
public
function
getIndexableObject
()
{
return
new
PholioMock
();
}
protected
function
buildAbstractDocumentByPHID
(
$phid
)
{
$mock
=
$this
->
loadDocumentByPHID
(
$phid
);
$doc
=
new
PhabricatorSearchAbstractDocument
();
$doc
->
setPHID
(
$mock
->
getPHID
());
$doc
->
setDocumentType
(
phid_get_type
(
$mock
->
getPHID
()));
$doc
->
setDocumentTitle
(
$mock
->
getName
());
$doc
->
setDocumentCreated
(
$mock
->
getDateCreated
());
$doc
->
setDocumentModified
(
$mock
->
getDateModified
());
$doc
->
addField
(
PhabricatorSearchField
::
FIELD_BODY
,
$mock
->
getDescription
());
$doc
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_AUTHOR
,
$mock
->
getAuthorPHID
(),
PhabricatorPHIDConstants
::
PHID_TYPE_USER
,
$mock
->
getDateCreated
());
return
$doc
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 7:39 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
232503
Default Alt Text
PholioSearchIndexer.php (910 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment