Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82955266
PholioMockFulltextEngine.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
Sat, Sep 14, 10:22
Size
585 B
Mime Type
text/x-php
Expires
Mon, Sep 16, 10:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20777840
Attached To
rPH Phabricator
PholioMockFulltextEngine.php
View Options
<?php
final
class
PholioMockFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$mock
=
$object
;
$document
->
setDocumentTitle
(
$mock
->
getName
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$mock
->
getDescription
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_AUTHOR
,
$mock
->
getAuthorPHID
(),
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
$mock
->
getDateCreated
());
}
}
Event Timeline
Log In to Comment