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
Afficher le fichier Open project: rtCamp/rtMedia

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

public __construct ( ) : RTMediaContext
Résultat RTMediaContext

get_current_bp_component_id() public méthode

Get current bp component id
public get_current_bp_component_id ( ) : int/null
Résultat int/null

set_bp_component_context() public méthode

Set BuddyPress component context

set_bp_context() public méthode

Set BuddyPress context
public set_bp_context ( )

set_context() public méthode

Set current request context
public set_context ( )

set_wp_context() public méthode

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