PHP Class Rarst\Fragment_Cache\Gallery_Cache

Inheritance: extends Rarst\Fragment_Cache\Fragment_Cache
Datei anzeigen Open project: rarst/fragment-cache

Protected Properties

Property Type Description
$original_shortcode mixed Callback originally registered for gallery shortcode.

Public Methods

Method Description
disable ( )
enable ( )
gallery_shortcode ( array $args ) : string Fetch and return cached gallery.
get_attachment_ids ( ) : array Retrieve array of attachment IDs for current post.

Protected Methods

Method Description
callback ( string $name, array $args ) : string Set up post context and generate gallery output.

Method Details

callback() protected method

Set up post context and generate gallery output.
protected callback ( string $name, array $args ) : string
$name string Fragment name.
$args array Arguments.
return string

disable() public method

public disable ( )

enable() public method

public enable ( )

get_attachment_ids() public method

Retrieve array of attachment IDs for current post.
public get_attachment_ids ( ) : array
return array

Property Details

$original_shortcode protected_oe property

Callback originally registered for gallery shortcode.
protected mixed $original_shortcode
return mixed