PHP Class RTMedia, rtMedia

The main rtMedia Class. This is where everything starts.
Author: Faishal ([email protected])
Afficher le fichier Open project: rtCamp/rtMedia

Méthodes publiques

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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 ( )

Method Details

__construct() public méthode

Initialises media counter
public __construct ( )

add_image_sizes() public méthode

public add_image_sizes ( )

admin_init() public méthode

Load admin screens
public admin_init ( )

check_global_album() public méthode

public check_global_album ( )

comment_auto_complete() public méthode

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() public méthode

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

create_table_error_notice() public méthode

custom_style_for_activity_image_size() public méthode

custom_style_for_image_size() public méthode

default_count() public méthode

public default_count ( )

define_type_constants() public méthode

enqueue_scripts_styles() public méthode

filter_allow_mime_type_mu() public méthode

public filter_allow_mime_type_mu ( $options )

filter_image_sizes() public méthode

public filter_image_sizes ( $sizes )

filter_image_sizes_details() public méthode

public filter_image_sizes_details ( $sizes )

fix_db_collation() public méthode

public fix_db_collation ( )

fix_group_media_privacy() public méthode

* 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 méthode

public fix_parent_id ( )

fix_privacy() public méthode

public fix_privacy ( )

image_sizes() public méthode

public image_sizes ( )

init() public méthode

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

init_buddypress_options() public méthode

init_site_options() public méthode

public init_site_options ( )

load_translation() static public méthode

Loads translations
static public load_translation ( )

media_screen() public méthode

public media_screen ( )

plugin_get_version() static public méthode

static public plugin_get_version ( $path = null )

redirect_on_change_slug() public méthode

rtmedia_bp_activity_maybe_load_mentions_scripts_callback() public méthode

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
Résultat boolean true

rtmedia_custom_image_sizes_choose() public méthode

rtmedia_jpeg_quality() public méthode

public rtmedia_jpeg_quality ( $quality )

sanitize_allowed_types() public méthode

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
Résultat array $allowed_types sanitized media types

set_allowed_types() public méthode

Default allowed media types array
public set_allowed_types ( )

set_bp_bar() public méthode

public set_bp_bar ( )

set_default_sizes() public méthode

Set the default sizes
public set_default_sizes ( )

set_friends_object() public méthode

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

set_image_quality() public méthode

public set_image_quality ( )

set_privacy() public méthode

Set privacy options
public set_privacy ( )

set_rtmedia_meta_wpdbfix() public méthode

set_site_options() public méthode

public set_site_options ( )

unset_bp_media_image_sizes() public méthode

public unset_bp_media_image_sizes ( $sizes )

unset_bp_media_image_sizes_details() public méthode

update_db() public méthode

public update_db ( )

Property Details

$activity_types public_oe property

The types of activity BuddyPress Media creates
public $activity_types

$allowed_types public_oe property

allowed media types
public $allowed_types

$default_privacy public_oe property

default application wide privacy levels
public $default_privacy

$default_sizes public_oe property

default media sizes
public $default_sizes

$options public_oe property

public $options

$posts_per_page public_oe property

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

$privacy_settings public_oe property

privacy settings
public $privacy_settings

$render_options public_oe property

public $render_options

$support_url public_oe property

Support forum url
public $support_url