Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99174598
PhabricatorIndexEngineExtension.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
Wed, Jan 22, 00:23
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 24, 00:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23730002
Attached To
rPH Phabricator
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'
);
}
}
Event Timeline
Log In to Comment