Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101127528
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
Thu, Feb 6, 00:44
Size
712 B
Mime Type
text/x-php
Expires
Sat, Feb 8, 00:44 (2 d)
Engine
blob
Format
Raw Data
Handle
24098545
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