PHP 클래스 RTMedia, rtMedia

The main rtMedia Class. This is where everything starts.
저자: Faishal ([email protected])
파일 보기 프로젝트 열기: rtCamp/rtMedia

공개 프로퍼티들

프로퍼티 타입 설명
$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