PHP Class Mlp_Term_Translation_Selector

Author: Inpsyde GmbH, toscho
Mostra file Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce, Mlp_Term_Translation_Presenter $presenter )
get_fieldset_id ( ) : string
get_title ( ) : string
print_fieldset_id ( ) : boolean
print_table ( ) : boolean
print_title ( ) : boolean

Private Methods

Method Description
get_current_term ( integer $site_id ) : integer Return the term taxonomy ID for the currently saved term.
get_label_id ( string $key ) : string Make sure we have a HTML-4 compatible id attribute.
get_no_terms_found_message ( integer $site_id ) : string Create the message to display when there are no terms on the other site.
get_option_element ( integer $term_taxonomy_id, string $term_name, integer $current_term, string $relation_id ) : string Return the optin tag for the given term.
print_style ( ) : void Print inline stylesheet.
print_term_options ( array $terms, integer $current_term, integer $site_id ) : void Render the option tags for the given terms.

Method Details

__construct() public method

public __construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce, Mlp_Term_Translation_Presenter $presenter )
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.
$presenter Mlp_Term_Translation_Presenter

get_fieldset_id() public method

public get_fieldset_id ( ) : string
return string

get_title() public method

public get_title ( ) : string
return string

print_fieldset_id() public method

public print_fieldset_id ( ) : boolean
return boolean

print_table() public method

public print_table ( ) : boolean
return boolean

print_title() public method

public print_title ( ) : boolean
return boolean