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
파일 보기 프로젝트 열기: rtCamp/rtMedia

공개 프로퍼티들

프로퍼티 타입 설명
$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