Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92760002
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
Sat, Nov 23, 12:08
Size
710 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 12:08 (2 d)
Engine
blob
Format
Raw Data
Handle
22506219
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
shouldIndexFulltextObject
(
$object
)
{
if
(!(
$object
instanceof
PhabricatorLiskDAO
))
{
return
false
;
}
if
(!
$object
->
getConfigOption
(
LiskDAO
::
CONFIG_TIMESTAMPS
))
{
return
false
;
}
return
true
;
}
public
function
indexFulltextObject
(
$object
,
PhabricatorSearchAbstractDocument
$document
)
{
$document
->
setDocumentCreated
(
$object
->
getDateCreated
())
->
setDocumentModified
(
$object
->
getDateModified
());
}
}
Event Timeline
Log In to Comment