Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889402
PhabricatorIndexEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorIndexEngineExtension.php
View Options
<?php
abstract
class
PhabricatorIndexEngineExtension
extends
Phobject
{
private
$parameters
;
private
$forceFullReindex
;
public
function
setParameters
(
array
$parameters
)
{
$this
->
parameters
=
$parameters
;
return
$this
;
}
public
function
getParameter
(
$key
,
$default
=
null
)
{
return
idx
(
$this
->
parameters
,
$key
,
$default
)
;
}
final
public
function
getExtensionKey
(
)
{
return
$this
->
getPhobjectClassConstant
(
'EXTENSIONKEY'
)
;
}
final
protected
function
getViewer
(
)
{
return
PhabricatorUser
::
getOmnipotentUser
(
)
;
}
abstract
public
function
getExtensionName
(
)
;
abstract
public
function
shouldIndexObject
(
$object
)
;
abstract
public
function
indexObject
(
PhabricatorIndexEngine
$engine
,
$object
)
;
public
function
getIndexVersion
(
$object
)
{
return
null
;
}
final
public
static
function
getAllExtensions
(
)
{
return
id
(
new
PhutilClassMapQuery
(
)
)
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getExtensionKey'
)
->
execute
(
)
;
}
final
public
function
shouldForceFullReindex
(
)
{
return
$this
->
getParameter
(
'force'
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 12:06 (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111638
Default Alt Text
PhabricatorIndexEngineExtension.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment