Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F488211
PhabricatorCacheEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
924 B
Referenced Files
None
Subscribers
None
PhabricatorCacheEngineExtension.php
View Options
<?php
abstract
class
PhabricatorCacheEngineExtension
extends
Phobject
{
final
public
function
getExtensionKey
()
{
return
$this
->
getPhobjectClassConstant
(
'EXTENSIONKEY'
);
}
abstract
public
function
getExtensionName
();
public
function
discoverLinkedObjects
(
PhabricatorCacheEngine
$engine
,
array
$objects
)
{
return
array
();
}
public
function
deleteCaches
(
PhabricatorCacheEngine
$engine
,
array
$objects
)
{
return
null
;
}
final
public
static
function
getAllExtensions
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getExtensionKey'
)
->
execute
();
}
final
public
function
selectObjects
(
array
$objects
,
$class_name
)
{
$results
=
array
();
foreach
(
$objects
as
$phid
=>
$object
)
{
if
(
$object
instanceof
$class_name
)
{
$results
[
$phid
]
=
$object
;
}
}
return
$results
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 7:02 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
73080
Default Alt Text
PhabricatorCacheEngineExtension.php (924 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment