PHP 클래스 AS3CF_Filter, wp-amazon-s3-and-cloudfront

파일 보기 프로젝트 열기: deliciousbrains/wp-amazon-s3-and-cloudfront

보호된 프로퍼티들

프로퍼티 타입 설명
$as3cf Amazon_S3_And_CloudFront
$query_cache array

공개 메소드들

메소드 설명
__construct ( Amazon_S3_And_CloudFront $as3cf ) Constructor
filter_customizer_image ( string $value, boolean | string $old_value = false ) : string Filter customizer image.
filter_edd_download_files ( array $value ) : array Filter EDD download files.
filter_header_image_data ( stdClass $value, boolean | stdClass $old_value = false ) : stdClass Filter header image data.
filter_post ( string $content ) : string Filter post.
purge_cache_on_attachment_delete ( integer $post_id ) Purge attachment from cache on delete.
purge_from_cache ( string $url, boolean | integer $blog_id = false ) Purge URL from cache

보호된 메소드들

메소드 설명
attachment_id_matches_src ( integer $attachment_id, string $url ) : boolean Does attachment ID match src?
find_urls_and_replace ( string $value, array $cache, array &$to_cache ) : string Find URLs and replace.
get_attachment_id_from_url ( string $url ) : boolean | integer Get attachment ID from URL.
get_attachment_ids_from_urls ( array $urls ) : array Get attachment IDs from URLs.
get_base_url ( integer $attachment_id ) : string | false Get base URL.
get_option_cache ( ) : array Get option cache.
get_post_cache ( ) : array Get post cache
get_size_string_from_url ( integer $attachment_id, string $url ) : null | string Get size string from URL.
get_url ( integer $attachment_id, null | string $size = null ) : boolean | string Get URL.
get_urls_from_content ( string $content, array $cache, array &$to_cache ) : array Get URLs from content.
get_urls_from_img_src ( string $content, array &$to_cache ) : array Get URLs from img src.
is_failure ( mixed $value ) : boolean Is failure?
maybe_update_option_cache ( array $to_cache ) Maybe update option cache.
maybe_update_post_cache ( array $to_cache ) Maybe update post cache
normalize_find_value ( string $url ) : string Normalize find value.
normalize_replace_value ( string $url ) : string Normalize replace value.
post_process_content ( string $content ) : string Post process content.
pre_replace_content ( string $content ) : string Pre replace content.
process_content ( string $content, array $cache, array &$to_cache ) : mixed Process content.
push_to_url_pairs ( array &$url_pairs, integer $attachment_id, string $find, array &$to_cache ) Push to URL pairs.
remove_aws_query_strings ( string $content, string $base_url = '' ) : string Remove AWS query strings.
replace_urls ( string $content, array $url_pairs ) : string Replace URLs.
should_filter_content ( ) : boolean Should filter content.
url_cache_failure ( string $url, array &$to_cache ) URL cache failure.
url_needs_replacing ( string $url ) : boolean Does URL need replacing?

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Amazon_S3_And_CloudFront $as3cf )
$as3cf Amazon_S3_And_CloudFront

attachment_id_matches_src() 보호된 메소드

Does attachment ID match src?
protected attachment_id_matches_src ( integer $attachment_id, string $url ) : boolean
$attachment_id integer
$url string
리턴 boolean

filter_customizer_image() 공개 메소드

Filter customizer image.
public filter_customizer_image ( string $value, boolean | string $old_value = false ) : string
$value string
$old_value boolean | string
리턴 string

filter_edd_download_files() 공개 메소드

Filter EDD download files.
public filter_edd_download_files ( array $value ) : array
$value array
리턴 array

filter_header_image_data() 공개 메소드

Filter header image data.
public filter_header_image_data ( stdClass $value, boolean | stdClass $old_value = false ) : stdClass
$value stdClass
$old_value boolean | stdClass
리턴 stdClass

filter_post() 공개 메소드

Filter post.
public filter_post ( string $content ) : string
$content string
리턴 string

find_urls_and_replace() 보호된 메소드

Find URLs and replace.
protected find_urls_and_replace ( string $value, array $cache, array &$to_cache ) : string
$value string
$cache array
$to_cache array
리턴 string

get_attachment_id_from_url() 추상적인 보호된 메소드

Get attachment ID from URL.
abstract protected get_attachment_id_from_url ( string $url ) : boolean | integer
$url string
리턴 boolean | integer

get_attachment_ids_from_urls() 추상적인 보호된 메소드

Get attachment IDs from URLs.
abstract protected get_attachment_ids_from_urls ( array $urls ) : array
$urls array
리턴 array url => attachment ID (or false)

get_base_url() 추상적인 보호된 메소드

Get base URL.
abstract protected get_base_url ( integer $attachment_id ) : string | false
$attachment_id integer
리턴 string | false

get_option_cache() 보호된 메소드

Get option cache.
protected get_option_cache ( ) : array
리턴 array

get_post_cache() 보호된 메소드

Get post cache
protected get_post_cache ( ) : array
리턴 array

get_size_string_from_url() 보호된 메소드

Get size string from URL.
protected get_size_string_from_url ( integer $attachment_id, string $url ) : null | string
$attachment_id integer
$url string
리턴 null | string

get_url() 추상적인 보호된 메소드

Get URL.
abstract protected get_url ( integer $attachment_id, null | string $size = null ) : boolean | string
$attachment_id integer
$size null | string
리턴 boolean | string

get_urls_from_content() 보호된 메소드

Get URLs from content.
protected get_urls_from_content ( string $content, array $cache, array &$to_cache ) : array
$content string
$cache array
$to_cache array
리턴 array

get_urls_from_img_src() 보호된 메소드

Get URLs from img src.
protected get_urls_from_img_src ( string $content, array &$to_cache ) : array
$content string
$to_cache array
리턴 array

is_failure() 보호된 메소드

Is failure?
protected is_failure ( mixed $value ) : boolean
$value mixed
리턴 boolean

maybe_update_option_cache() 보호된 메소드

Maybe update option cache.
protected maybe_update_option_cache ( array $to_cache )
$to_cache array

maybe_update_post_cache() 보호된 메소드

Maybe update post cache
protected maybe_update_post_cache ( array $to_cache )
$to_cache array

normalize_find_value() 추상적인 보호된 메소드

Normalize find value.
abstract protected normalize_find_value ( string $url ) : string
$url string
리턴 string

normalize_replace_value() 추상적인 보호된 메소드

Normalize replace value.
abstract protected normalize_replace_value ( string $url ) : string
$url string
리턴 string

post_process_content() 추상적인 보호된 메소드

Post process content.
abstract protected post_process_content ( string $content ) : string
$content string
리턴 string

pre_replace_content() 추상적인 보호된 메소드

Pre replace content.
abstract protected pre_replace_content ( string $content ) : string
$content string
리턴 string

process_content() 보호된 메소드

Process content.
protected process_content ( string $content, array $cache, array &$to_cache ) : mixed
$content string
$cache array
$to_cache array
리턴 mixed

purge_cache_on_attachment_delete() 공개 메소드

Purge attachment from cache on delete.
public purge_cache_on_attachment_delete ( integer $post_id )
$post_id integer

purge_from_cache() 공개 메소드

Purge URL from cache
public purge_from_cache ( string $url, boolean | integer $blog_id = false )
$url string
$blog_id boolean | integer

push_to_url_pairs() 보호된 메소드

Push to URL pairs.
protected push_to_url_pairs ( array &$url_pairs, integer $attachment_id, string $find, array &$to_cache )
$url_pairs array
$attachment_id integer
$find string
$to_cache array

remove_aws_query_strings() 보호된 메소드

Remove AWS query strings.
protected remove_aws_query_strings ( string $content, string $base_url = '' ) : string
$content string
$base_url string Optional base URL that must exist within URL for Amazon query strings to be removed.
리턴 string

replace_urls() 보호된 메소드

Replace URLs.
protected replace_urls ( string $content, array $url_pairs ) : string
$content string
$url_pairs array
리턴 string

should_filter_content() 보호된 메소드

Should filter content.
protected should_filter_content ( ) : boolean
리턴 boolean

url_cache_failure() 보호된 메소드

URL cache failure.
protected url_cache_failure ( string $url, array &$to_cache )
$url string
$to_cache array

url_needs_replacing() 추상적인 보호된 메소드

Does URL need replacing?
abstract protected url_needs_replacing ( string $url ) : boolean
$url string
리턴 boolean

프로퍼티 상세

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

protected Amazon_S3_And_CloudFront $as3cf
리턴 Amazon_S3_And_CloudFront

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

protected array $query_cache
리턴 array