PHP Класс RTMediaContext, rtMedia

Default Context - The page on from which the request is generating will be taken as the default context; if any context/context_id is not passed while uploading any media or displaying the gallery.
Автор: saurabh
Показать файл Открыть проект

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

Свойство Тип Описание
$id
$type - Context Type. It can be any type among these. (post, page, custom_post, home_page, archive etc.) $id - context id of the context

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

Метод Описание
__construct ( ) : RTMediaContext
get_current_bp_component_id ( ) : int/null Get current bp component id
set_bp_component_context ( ) Set BuddyPress component context
set_bp_context ( ) Set BuddyPress context
set_context ( ) Set current request context
set_wp_context ( ) Set WordPress context

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

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

public __construct ( ) : RTMediaContext
Результат RTMediaContext

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

Get current bp component id
public get_current_bp_component_id ( ) : int/null
Результат int/null

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

Set BuddyPress component context

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

Set BuddyPress context
public set_bp_context ( )

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

Set current request context
public set_context ( )

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

Set WordPress context
public set_wp_context ( )

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

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

public $id

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

- Context Type. It can be any type among these. (post, page, custom_post, home_page, archive etc.) $id - context id of the context
public $type