PHP 클래스 Mlp_Advanced_Translator_View

Data model for post translation. Handles inserts of new posts only.
저자: Inpsyde GmbH, toscho
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( Mlp_Advanced_Translator_Data_Interface $data ) Constructor.
blog_id_input ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
show_copy_button ( string $editor_id, integer $remote_site_id ) : void Add a button next to the media button to copy the source post.
show_editor ( WP_Post $source_post, integer $remote_blog_id, WP_Post $remote_post ) : void
show_excerpt ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
show_name ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
show_taxonomies ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
show_thumbnail_checkbox ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
show_title ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
show_trashed_message ( ) : void Shows a warning message in the metabox that the remote post is trashed.

비공개 메소드들

메소드 설명
get_id ( integer $blog_id, string $name ) : string Get the value for the id attribute.
get_name ( integer $blog_id, string $name ) : string Get the value for the name attribute.
get_placeholder_title ( WP_Post $post ) : string | void Get placeholder attribute text.
list_terms ( string $taxonomy, array $data, integer $remote_blog_id, string $input_type ) : void List terms which are mutually exclusive, like post formats.
term_box ( string $title, string $html ) : void Container HTML for term selection.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Mlp_Advanced_Translator_Data_Interface $data )
$data Mlp_Advanced_Translator_Data_Interface

blog_id_input() 공개 메소드

public blog_id_input ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
$source_post WP_Post
$remote_blog_id integer
$post WP_Post
리턴 void

show_copy_button() 공개 메소드

Add a button next to the media button to copy the source post.
public show_copy_button ( string $editor_id, integer $remote_site_id ) : void
$editor_id string tinyMCE editor ID.
$remote_site_id integer Remote site ID.
리턴 void

show_editor() 공개 메소드

public show_editor ( WP_Post $source_post, integer $remote_blog_id, WP_Post $remote_post ) : void
$source_post WP_Post
$remote_blog_id integer
$remote_post WP_Post
리턴 void

show_excerpt() 공개 메소드

public show_excerpt ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
$source_post WP_Post
$remote_blog_id integer
$post WP_Post Remote post
리턴 void

show_name() 공개 메소드

public show_name ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
$source_post WP_Post
$remote_blog_id integer
$post WP_Post Remote post
리턴 void

show_taxonomies() 공개 메소드

public show_taxonomies ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
$source_post WP_Post
$remote_blog_id integer
$post WP_Post
리턴 void

show_thumbnail_checkbox() 공개 메소드

public show_thumbnail_checkbox ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
$source_post WP_Post
$remote_blog_id integer
$post WP_Post
리턴 void

show_title() 공개 메소드

public show_title ( WP_Post $source_post, integer $remote_blog_id, WP_Post $post ) : void
$source_post WP_Post
$remote_blog_id integer
$post WP_Post Remote post
리턴 void

show_trashed_message() 공개 메소드

Shows a warning message in the metabox that the remote post is trashed.
public show_trashed_message ( ) : void
리턴 void