PHP Class RTMediaPrivacy, rtMedia

Author: saurabh
Afficher le fichier Open project: rtCamp/rtMedia Class Usage Examples

Méthodes publiques

Свойство Type Description
$default_privacy default application wide privacy levels
$rtm_activity_table_alias

Méthodes publiques

Méthode Description
__construct ( $flag = true )
activity_privacy ( $sql, $select_sql, $from_sql, $where_sql, $sort, $pag_sql = '' )
activity_privacy_sql_field ( $sql, $select_sql, $from_sql, $where_sql, $sort, string $pag_sql = '' ) : string Hooked to bp_activity_get_user_join_filter filter. Get activity privacy field inside loop.
add_activity_privacy_nonce ( ) Add nonce field for activity privacy change action verification
add_nav ( )
can_use_rtm_ac_privacy ( ) : boolean | mixed | void Check if activity privacy migration is done or not.
content ( )
enable_buddypress_load_more ( $has_more_items )
enable_buddypress_privacy ( $flag, $method, $func_args )
get_default ( )
get_user_default ( $user_id = false )
is_enabled ( )
required_access ( $object_id = false )
rt_privacy_settings_action ( ) changing and saving of privacy setting save action
rtm_change_activity_privacy ( )
save_user_default ( $level, $user_id = false )
select_privacy_ui ( $echo = true, $element_id = false, $element_class = [], $selected = false )
settings_ui ( )
site_default ( )
system_default ( )
title ( )
update_activity_privacy_option ( ) Hooked to bp_activity_entry_meta
user_default ( )

Method Details

__construct() public méthode

public __construct ( $flag = true )

activity_privacy() public méthode

public activity_privacy ( $sql, $select_sql, $from_sql, $where_sql, $sort, $pag_sql = '' )

activity_privacy_sql_field() public méthode

Use only if current user has admin capability because for non admin users privacy field will be added in privacy filter query itself.
public activity_privacy_sql_field ( $sql, $select_sql, $from_sql, $where_sql, $sort, string $pag_sql = '' ) : string
$sql
$select_sql
$from_sql
$where_sql
$sort
$pag_sql string
Résultat string

add_activity_privacy_nonce() public méthode

Add nonce field for activity privacy change action verification

add_nav() public méthode

public add_nav ( )

can_use_rtm_ac_privacy() public méthode

Check if activity privacy migration is done or not.
public can_use_rtm_ac_privacy ( ) : boolean | mixed | void
Résultat boolean | mixed | void

content() public méthode

public content ( )

enable_buddypress_load_more() public méthode

public enable_buddypress_load_more ( $has_more_items )

enable_buddypress_privacy() public méthode

public enable_buddypress_privacy ( $flag, $method, $func_args )

get_default() public méthode

public get_default ( )

get_user_default() static public méthode

static public get_user_default ( $user_id = false )

is_enabled() static public méthode

static public is_enabled ( )

required_access() static public méthode

static public required_access ( $object_id = false )

rt_privacy_settings_action() public méthode

changing and saving of privacy setting save action

rtm_change_activity_privacy() public méthode

save_user_default() static public méthode

static public save_user_default ( $level, $user_id = false )

select_privacy_ui() public méthode

public select_privacy_ui ( $echo = true, $element_id = false, $element_class = [], $selected = false )

settings_ui() public méthode

public settings_ui ( )

site_default() public méthode

public site_default ( )

system_default() public méthode

public system_default ( )

title() public méthode

public title ( )

update_activity_privacy_option() public méthode

Show privacy dropdown inside activity loop along with activity meta buttons.

user_default() public méthode

public user_default ( )

Property Details

$default_privacy public_oe property

default application wide privacy levels
public $default_privacy

$rtm_activity_table_alias public_oe property

public $rtm_activity_table_alias