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

Inheritance: extends AS3CF_Filter
Show file Open project: deliciousbrains/wp-amazon-s3-and-cloudfront

Public Methods

Method Description
filter_content_pagination ( array $pages ) : array Filter content pagination.
filter_post_data ( WP_Post $post ) Filter post data.
filter_widget ( string $content ) : string Filter widget.
filter_widget_form ( array $instance, WP_Widget $class ) : string Filter widget form.

Protected Methods

Method 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_content_pagination() public method

Filter content pagination.
public filter_content_pagination ( array $pages ) : array
$pages array
return array

filter_post_data() public method

Filter post data.
public filter_post_data ( WP_Post $post )
$post WP_Post

filter_widget() public method

Filter widget.
public filter_widget ( string $content ) : string
$content string
return string

filter_widget_form() public method

Filter widget form.
public filter_widget_form ( array $instance, WP_Widget $class ) : string
$instance array
$class WP_Widget
return string

get_attachment_id_from_url() protected method

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

get_attachment_ids_from_urls() protected method

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

get_base_url() protected method

Get base URL.
protected get_base_url ( integer $attachment_id ) : string | false
$attachment_id integer
return string | false

get_url() protected method

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

init() protected method

Init.
protected init ( )

normalize_find_value() protected method

Normalize find value.
protected normalize_find_value ( string $url ) : string
$url string
return string

normalize_replace_value() protected method

Normalize replace value.
protected normalize_replace_value ( string $url ) : string
$url string
return string

post_process_content() protected method

Post process content.
protected post_process_content ( string $content ) : string
$content string
return string

pre_replace_content() protected method

Pre replace content.
protected pre_replace_content ( string $content ) : string
$content string
return string

url_needs_replacing() protected method

Does URL need replacing?
protected url_needs_replacing ( string $url ) : boolean
$url string
return boolean