Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100127204
PhabricatorLiskFulltextEngineExtension.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, Jan 28, 09:00
Size
712 B
Mime Type
text/x-php
Expires
Thu, Jan 30, 09:00 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23905200
Attached To
rPH Phabricator
PhabricatorLiskFulltextEngineExtension.php
View Options
<?php
final
class
PhabricatorLiskFulltextEngineExtension
extends
PhabricatorFulltextEngineExtension
{
const
EXTENSIONKEY
=
'lisk'
;
public
function
getExtensionName
()
{
return
pht
(
'Lisk Builtin Properties'
);
}
public
function
shouldEnrichFulltextObject
(
$object
)
{
if
(!(
$object
instanceof
PhabricatorLiskDAO
))
{
return
false
;
}
if
(!
$object
->
getConfigOption
(
LiskDAO
::
CONFIG_TIMESTAMPS
))
{
return
false
;
}
return
true
;
}
public
function
enrichFulltextObject
(
$object
,
PhabricatorSearchAbstractDocument
$document
)
{
$document
->
setDocumentCreated
(
$object
->
getDateCreated
())
->
setDocumentModified
(
$object
->
getDateModified
());
}
}
Event Timeline
Log In to Comment