Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F436998
PhabricatorLiskFulltextEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
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
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 12:31 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
62924
Default Alt Text
PhabricatorLiskFulltextEngineExtension.php (712 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment