PHP Class AS3CF_S3_To_Local, wp-amazon-s3-and-cloudfront

Inheritance: extends AS3CF_Filter
Afficher le fichier Open project: deliciousbrains/wp-amazon-s3-and-cloudfront

Méthodes publiques

Méthode Description
filter_widget_update ( array $instance, array $new_instance, array $old_instance, WP_Widget $class ) : array Filter widget update.

Méthodes protégées

Méthode Description
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_url ( integer $attachment_id, null | string $size = null ) : boolean | string Get URL
init ( ) Init.
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.
url_needs_replacing ( string $url ) : boolean Does URL need replacing?

Method Details

filter_widget_update() public méthode

Filter widget update.
public filter_widget_update ( array $instance, array $new_instance, array $old_instance, WP_Widget $class ) : array
$instance array
$new_instance array
$old_instance array
$class WP_Widget
Résultat array

get_attachment_id_from_url() protected méthode

Get attachment ID from URL.
protected get_attachment_id_from_url ( string $url ) : boolean | integer
$url string
Résultat boolean | integer

get_attachment_ids_from_urls() protected méthode

Get attachment IDs from URLs.
protected get_attachment_ids_from_urls ( array $urls ) : array
$urls array
Résultat array url => attachment ID (or false)

get_base_url() protected méthode

Get base URL.
protected get_base_url ( integer $attachment_id ) : string | false
$attachment_id integer
Résultat string | false

get_url() protected méthode

Get URL
protected get_url ( integer $attachment_id, null | string $size = null ) : boolean | string
$attachment_id integer
$size null | string
Résultat boolean | string

init() protected méthode

Init.
protected init ( )

normalize_find_value() protected méthode

Normalize find value.
protected normalize_find_value ( string $url ) : string
$url string
Résultat string

normalize_replace_value() protected méthode

Normalize replace value.
protected normalize_replace_value ( string $url ) : string
$url string
Résultat string

post_process_content() protected méthode

Post process content.
protected post_process_content ( string $content ) : string
$content string
Résultat string

pre_replace_content() protected méthode

Pre replace content.
protected pre_replace_content ( string $content ) : string
$content string
Résultat string

url_needs_replacing() protected méthode

Does URL need replacing?
protected url_needs_replacing ( string $url ) : boolean
$url string
Résultat boolean