PHP 클래스 Rarst\Fragment_Cache\Gallery_Cache

상속: extends Rarst\Fragment_Cache\Fragment_Cache
파일 보기 프로젝트 열기: rarst/fragment-cache

보호된 프로퍼티들

프로퍼티 타입 설명
$original_shortcode mixed Callback originally registered for gallery shortcode.

공개 메소드들

메소드 설명
disable ( )
enable ( )
gallery_shortcode ( array $args ) : string Fetch and return cached gallery.
get_attachment_ids ( ) : array Retrieve array of attachment IDs for current post.

보호된 메소드들

메소드 설명
callback ( string $name, array $args ) : string Set up post context and generate gallery output.

메소드 상세

callback() 보호된 메소드

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

disable() 공개 메소드

public disable ( )

enable() 공개 메소드

public enable ( )

get_attachment_ids() 공개 메소드

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

프로퍼티 상세

$original_shortcode 보호되어 있는 프로퍼티

Callback originally registered for gallery shortcode.
protected mixed $original_shortcode
리턴 mixed