Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93821126
PhabricatorCacheEngineExtension.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
Sun, Dec 1, 19:00
Size
924 B
Mime Type
text/x-php
Expires
Tue, Dec 3, 19:00 (2 d)
Engine
blob
Format
Raw Data
Handle
22658872
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment