Property | Type | Description | |
---|---|---|---|
$as3cf | Amazon_S3_And_CloudFront | ||
$query_cache | array |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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? |
public __construct ( Amazon_S3_And_CloudFront $as3cf ) | ||
$as3cf | Amazon_S3_And_CloudFront |
public filter_edd_download_files ( array $value ) : array | ||
$value | array | |
return | array |
public filter_header_image_data ( stdClass $value, boolean | stdClass $old_value = false ) : stdClass | ||
$value | stdClass | |
$old_value | boolean | stdClass | |
return | stdClass |
public filter_post ( string $content ) : string | ||
$content | string | |
return | string |
abstract protected get_attachment_ids_from_urls ( array $urls ) : array | ||
$urls | array | |
return | array | url => attachment ID (or false) |
abstract protected get_base_url ( integer $attachment_id ) : string | false | ||
$attachment_id | integer | |
return | string | false |
protected get_option_cache ( ) : array | ||
return | array |
protected is_failure ( mixed $value ) : boolean | ||
$value | mixed | |
return | boolean |
protected maybe_update_option_cache ( array $to_cache ) | ||
$to_cache | array |
protected maybe_update_post_cache ( array $to_cache ) | ||
$to_cache | array |
abstract protected normalize_find_value ( string $url ) : string | ||
$url | string | |
return | string |
abstract protected normalize_replace_value ( string $url ) : string | ||
$url | string | |
return | string |
abstract protected post_process_content ( string $content ) : string | ||
$content | string | |
return | string |
abstract protected pre_replace_content ( string $content ) : string | ||
$content | string | |
return | string |
public purge_cache_on_attachment_delete ( integer $post_id ) | ||
$post_id | integer |
protected should_filter_content ( ) : boolean | ||
return | boolean |
protected url_cache_failure ( string $url, array &$to_cache ) | ||
$url | string | |
$to_cache | array |
abstract protected url_needs_replacing ( string $url ) : boolean | ||
$url | string | |
return | boolean |
protected Amazon_S3_And_CloudFront $as3cf | ||
return | Amazon_S3_And_CloudFront |