PHP Класс RTMediaPrivacy, rtMedia

Автор: saurabh
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$default_privacy default application wide privacy levels
$rtm_activity_table_alias

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

Метод Описание
__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 ( )

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

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

public __construct ( $flag = true )

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

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

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

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
Результат string

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

Add nonce field for activity privacy change action verification

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

public add_nav ( )

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

Check if activity privacy migration is done or not.
public can_use_rtm_ac_privacy ( ) : boolean | mixed | void
Результат boolean | mixed | void

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

public content ( )

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

public enable_buddypress_load_more ( $has_more_items )

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

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

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

public get_default ( )

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

static public get_user_default ( $user_id = false )

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

static public is_enabled ( )

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

static public required_access ( $object_id = false )

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

changing and saving of privacy setting save action

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

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

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

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

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

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

public settings_ui ( )

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

public site_default ( )

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

public system_default ( )

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

public title ( )

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

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

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

public user_default ( )

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

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

default application wide privacy levels
public $default_privacy

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

public $rtm_activity_table_alias