PHP 클래스 Mlp_Translation_Metabox

파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( Inpsyde_Property_List_Interface $plugin_data ) Constructor.
get_remote_post_info ( integer $blog_id, WP_Post $remote_post ) : string Status and, if available, publishing time.
register_meta_boxes ( string $post_type, WP_Post $post ) : void

비공개 메소드들

메소드 설명
get_edit_post_link ( integer $post_id, integer $blog_id, string $text = '' ) : string Used for the metabox title.
get_metabox_title ( integer $blog_id, WP_Post $post, string $language ) : string Create the title for each metabox.
is_post_editor ( ) : boolean Are we on a post editor screen?
is_translatable_by_user ( WP_Post $post, integer $blog_id ) : boolean Check if the current user has the appropriate capabilities to edit the given post.
register_metabox_per_language ( integer $blog_id, WP_Post $post ) : void Register one box for each connected site.
register_metabox_view_details ( Mlp_Translation_Metabox_View $view, WP_Post $post, integer $blog_id ) : void Register separate input fields.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Inpsyde_Property_List_Interface $plugin_data )
$plugin_data Inpsyde_Property_List_Interface

get_remote_post_info() 공개 메소드

Status and, if available, publishing time.
public get_remote_post_info ( integer $blog_id, WP_Post $remote_post ) : string
$blog_id integer
$remote_post WP_Post
리턴 string

register_meta_boxes() 공개 메소드

public register_meta_boxes ( string $post_type, WP_Post $post ) : void
$post_type string
$post WP_Post
리턴 void