PHP Class 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.
Author: saurabh
显示文件 Open project: rtCamp/rtMedia

Public Properties

Property Type Description
$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 Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( ) : RTMediaContext
return RTMediaContext

get_current_bp_component_id() public method

Get current bp component id
public get_current_bp_component_id ( ) : int/null
return int/null

set_bp_component_context() public method

Set BuddyPress component context

set_bp_context() public method

Set BuddyPress context
public set_bp_context ( )

set_context() public method

Set current request context
public set_context ( )

set_wp_context() public method

Set WordPress context
public set_wp_context ( )

Property Details

$id public_oe property

public $id

$type public_oe property

- 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