PHP Class Rarst\Fragment_Cache\Plugin

Inheritance: extends Pimple\Container
Mostrar archivo Open project: rarst/fragment-cache

Protected Properties

Property Type Description
$handlers array Set of registered fragment handlers.

Public Methods

Method Description
add_fragment_handler ( string $type, string $class_name ) Add (or override) cache handler and enable it.
init ( ) Enable registered fragment handlers on init.
run ( ) Start the plugin after initial setup.
update_blocker_blocked ( array $blocked ) : array

Method Details

add_fragment_handler() public method

Add (or override) cache handler and enable it.
public add_fragment_handler ( string $type, string $class_name )
$type string Handler type name.
$class_name string Handler class name to instance.

init() public method

Enable registered fragment handlers on init.
public init ( )

run() public method

Start the plugin after initial setup.
public run ( )

update_blocker_blocked() public method

See also: https://github.com/Rarst/update-blocker
public update_blocker_blocked ( array $blocked ) : array
$blocked array Configuration data for blocked items.
return array

Property Details

$handlers protected_oe property

Set of registered fragment handlers.
protected array $handlers
return array