Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Amazon_S3_And_CloudFront
on_off
Amazon_S3_And_CloudFront::on_off PHP Method
Amazon_S3_And_CloudFront Class Documentation
Show file
Open project: deliciousbrains/wp-amazon-s3-and-cloudfront
on_off()
public
method
Helper for displaying settings
public
on_off
(
string
$key
) :
string
$key
string
setting key
return
string
function on_off($key) { $value = $this->get_setting($key, 0); return 1 == $value ? 'On' : 'Off'; }
Amazon_S3_And_CloudFront
__construct
_exit
_throw_error
add_media_row_actions
admin_menu
ajax_check_bucket
ajax_create_bucket
ajax_get_attachment_s3_details
ajax_get_buckets
ajax_get_diagnostic_info
ajax_get_url_preview
ajax_save_bucket
apply_file_suffix
attachment_s3_actions_meta_box
attachment_s3_meta_box
check_for_gd_imagick
check_write_permission
clear_scheduled_event
convert_dimensions_to_size_name
count_attachments
create_bucket
dbrains_link
decode_filename_in_path
delete_attachment
delete_s3_objects
diagnostic_media_counts
does_file_exist
does_file_exist_local
does_file_exist_s3
encode_filename_in_path
end_ajax
filter_input
filter_settings
gd_enabled
generate_unique_filename
get_access_denied_notice_message
get_acl_display_name
get_acl_value_string
get_all_blog_table_prefixes
get_allowed_mime_types
get_attached_file
get_attachment_file_paths
get_attachment_folder_time
get_attachment_local_url
get_attachment_local_url_size
get_attachment_s3_info
get_attachment_s3_url
get_attachment_url
get_aws_bucket_link
get_aws_regions
get_blog_ids
get_bucket_region
get_buckets
get_default_object_prefix
get_dynamic_prefix
get_file_prefix
get_folder_time_from_url
get_formatted_s3_info
get_image_sizes_details
get_local_url_preview
get_media_action_strings
get_memory_limit
get_mime_types_to_gzip
get_object_prefix
get_object_version_string
get_plugin_details
get_plugin_page_title
get_plugin_page_url
get_plugin_prefix_slug
get_post_time
get_s3_url_domain
get_s3_url_prefix
get_s3_url_scheme
get_s3client
get_s3object_region
get_secure_attachment_url
get_setting
get_setting_args
get_setting_bucket
get_setting_region
get_settings_nonce_key
get_settings_tabs
get_settings_whitelist
get_skip_sanitize_settings
get_url_preview
get_year_month_directory_name
handle_post_request
http_prepare_download_log
imagick_enabled
init
is_attachment_served_by_s3
is_current_blog
is_plugin_setup
is_pro
load_attachment_assets
load_media_assets
make_acl_admin_notice
maybe_convert_size_to_string
maybe_disable_save_button
maybe_display_deprecated_http_notice
maybe_encode_get_image_tag
maybe_encode_image_get_intermediate_size
maybe_encode_wp_get_attachment_image_src
maybe_encode_wp_prepare_attachment_for_js
maybe_remove_query_string
maybe_sign_intermediate_size
maybe_update_cloudfront_path
memory_exceeded
more_info_campaign_url
more_info_link
multisite_get_spaced_used
normalize_object_prefix
on_off
open_ssl_enabled
output_diagnostic_info
plugin_deactivated_notice
plugin_load
pre_set_setting
prepare_bucket_error
register_modal_assets
remove_attachment_files_from_s3
remove_local_files
remove_scheme
remove_size_from_filename
remove_wp_plugin_dir
render_bucket_permission_errors
render_page
restore_current_blog
return_upload_error
sanitize_custom_domain
save_bucket
save_bucket_for_ajax
schedule_event
set_attachment_acl_on_s3
set_client
set_setting
settings_more_info_link
should_gzip_file
show_deprecated_domain_setting
switch_to_blog
translate_region
update_attached_file
update_site_option
upgrade_virtual_host
upload_attachment_to_s3
use_ssl
verify_ajax_request
verify_media_actions
wp_get_attachment_url
wp_handle_upload_prefilter
wp_update_attachment_metadata