PHP Класс RTMedia, rtMedia

The main rtMedia Class. This is where everything starts.
Автор: Faishal ([email protected])
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$activity_types The types of activity BuddyPress Media creates
$allowed_types allowed media types
$default_privacy default application wide privacy levels
$default_sizes default media sizes
$options
$posts_per_page Number of media items to show in one view.
$privacy_settings privacy settings
$render_options
$support_url Support forum url

Открытые методы

Метод Описание
__construct ( ) Constructs the class Defines constants and excerpt lengths, initiates admin notices, loads and initiates the plugin, loads translations.
add_image_sizes ( )
admin_init ( ) Load admin screens
check_global_album ( )
comment_auto_complete ( $rtmedia_options = false, $bp_media_options = false ) add filter that is being given in the buddypress plugin which add the JS and CSS for autocomplete
constants ( ) Defines all the constants if undefined. Can be overridden by defining them elsewhere, say wp-config.php
create_table_error_notice ( )
custom_style_for_activity_image_size ( )
custom_style_for_gallery_image_size ( )
custom_style_for_gallery_image_size_masonry ( )
custom_style_for_image_size ( )
default_count ( )
define_type_constants ( )
enqueue_scripts_styles ( )
filter_allow_mime_type_mu ( $options )
filter_image_sizes ( $sizes )
filter_image_sizes_details ( $sizes )
fix_db_collation ( )
fix_group_media_privacy ( ) * Update media privacy of the medias having context=group update privacy of groups medias according to the privacy of the group 0->public, 20-> private/hidden
fix_parent_id ( )
fix_privacy ( )
get_user_link ( $user )
image_sizes ( )
init ( ) Hooks the plugin into BuddyPress via 'bp_include' action.
init_buddypress_options ( )
init_site_options ( )
load_translation ( ) Loads translations
media_screen ( )
plugin_get_version ( $path = null )
redirect_on_change_slug ( )
rtmedia_bp_activity_maybe_load_mentions_scripts_callback ( boolean $load_mentions, $mentions_enabled ) : boolean Always set to true when call on any of the Buddypress Pages
rtmedia_custom_image_sizes_choose ( $sizes )
rtmedia_jpeg_quality ( $quality )
sanitize_allowed_types ( array $allowed_types ) : array Sanitize all media sizes after hooking custom media types
set_allowed_types ( ) Default allowed media types array
set_bp_bar ( )
set_default_sizes ( ) Set the default sizes
set_friends_object ( ) todo: This function should return value or pass argument
set_image_quality ( )
set_privacy ( ) Set privacy options
set_rtmedia_meta_wpdbfix ( )
set_site_options ( )
unset_bp_media_image_sizes ( $sizes )
unset_bp_media_image_sizes_details ( $sizes )
update_db ( )

Описание методов

__construct() публичный Метод

Initialises media counter
public __construct ( )

add_image_sizes() публичный Метод

public add_image_sizes ( )

admin_init() публичный Метод

Load admin screens
public admin_init ( )

check_global_album() публичный Метод

public check_global_album ( )

comment_auto_complete() публичный Метод

More deatils on: http://hookr.io/functions/bp_activity_maybe_load_mentions_scripts/
public comment_auto_complete ( $rtmedia_options = false, $bp_media_options = false )

constants() публичный Метод

Defines all the constants if undefined. Can be overridden by defining them elsewhere, say wp-config.php
public constants ( )

create_table_error_notice() публичный Метод

custom_style_for_activity_image_size() публичный Метод

custom_style_for_image_size() публичный Метод

default_count() публичный Метод

public default_count ( )

define_type_constants() публичный Метод

enqueue_scripts_styles() публичный Метод

filter_allow_mime_type_mu() публичный Метод

public filter_allow_mime_type_mu ( $options )

filter_image_sizes() публичный Метод

public filter_image_sizes ( $sizes )

filter_image_sizes_details() публичный Метод

public filter_image_sizes_details ( $sizes )

fix_db_collation() публичный Метод

public fix_db_collation ( )

fix_group_media_privacy() публичный Метод

* Update media privacy of the medias having context=group update privacy of groups medias according to the privacy of the group 0->public, 20-> private/hidden

fix_parent_id() публичный Метод

public fix_parent_id ( )

fix_privacy() публичный Метод

public fix_privacy ( )

image_sizes() публичный Метод

public image_sizes ( )

init() публичный Метод

Initialises the plugin's functionalities, options, loads media for Profiles and Groups. Creates Admin panels Loads accessory functions
public init ( )

init_buddypress_options() публичный Метод

init_site_options() публичный Метод

public init_site_options ( )

load_translation() статический публичный Метод

Loads translations
static public load_translation ( )

media_screen() публичный Метод

public media_screen ( )

plugin_get_version() статический публичный Метод

static public plugin_get_version ( $path = null )

redirect_on_change_slug() публичный Метод

rtmedia_bp_activity_maybe_load_mentions_scripts_callback() публичный Метод

Always set to true when call on any of the Buddypress Pages
public rtmedia_bp_activity_maybe_load_mentions_scripts_callback ( boolean $load_mentions, $mentions_enabled ) : boolean
$load_mentions boolean
Результат boolean true

rtmedia_custom_image_sizes_choose() публичный Метод

rtmedia_jpeg_quality() публичный Метод

public rtmedia_jpeg_quality ( $quality )

sanitize_allowed_types() публичный Метод

Sanitize all media sizes after hooking custom media types
public sanitize_allowed_types ( array $allowed_types ) : array
$allowed_types array allowed media types after hooking custom types
Результат array $allowed_types sanitized media types

set_allowed_types() публичный Метод

Default allowed media types array
public set_allowed_types ( )

set_bp_bar() публичный Метод

public set_bp_bar ( )

set_default_sizes() публичный Метод

Set the default sizes
public set_default_sizes ( )

set_friends_object() публичный Метод

todo: This function should return value or pass argument
public set_friends_object ( )

set_image_quality() публичный Метод

public set_image_quality ( )

set_privacy() публичный Метод

Set privacy options
public set_privacy ( )

set_rtmedia_meta_wpdbfix() публичный Метод

set_site_options() публичный Метод

public set_site_options ( )

unset_bp_media_image_sizes() публичный Метод

public unset_bp_media_image_sizes ( $sizes )

unset_bp_media_image_sizes_details() публичный Метод

update_db() публичный Метод

public update_db ( )

Описание свойств

$activity_types публичное свойство

The types of activity BuddyPress Media creates
public $activity_types

$allowed_types публичное свойство

allowed media types
public $allowed_types

$default_privacy публичное свойство

default application wide privacy levels
public $default_privacy

$default_sizes публичное свойство

default media sizes
public $default_sizes

$options публичное свойство

public $options

$posts_per_page публичное свойство

Number of media items to show in one view.
public $posts_per_page

$privacy_settings публичное свойство

privacy settings
public $privacy_settings

$render_options публичное свойство

public $render_options

$support_url публичное свойство

Support forum url
public $support_url