PHP 클래스 Mlp_Term_Translation_Presenter

저자: Inpsyde GmbH, toscho
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Inpsyde\MultilingualPress\API\ContentRelations $content_relations, string $key_base ) Constructor. Set up the properties.
get_current_term ( integer $site_id, integer $term_id ) : integer Return the current term taxonomy ID for the given site and the given term ID in the current site.
get_group_title ( ) : string Return the group title.
get_key_base ( integer $site_id ) : string Term key base for given site.
get_relation_id ( integer $site_id, integer $term_taxonomy_id ) : string Return the relation ID for the given blog ID and term taxonomy ID.
get_site_languages ( ) : array Return the available site languages.
get_taxonomy ( ) : string Return the current taxonomy name.
get_terms_for_site ( integer $site_id ) : array Return the terms for the given type.

비공개 메소드들

메소드 설명
get_term_from_site ( integer $term_id ) : object Return the term object for the given term ID and the current site.

메소드 상세

__construct() 공개 메소드

Constructor. Set up the properties.
public __construct ( Inpsyde\MultilingualPress\API\ContentRelations $content_relations, string $key_base )
$content_relations Inpsyde\MultilingualPress\API\ContentRelations Content relations object.
$key_base string Term key base.

get_current_term() 공개 메소드

Return the current term taxonomy ID for the given site and the given term ID in the current site.
public get_current_term ( integer $site_id, integer $term_id ) : integer
$site_id integer Blog ID.
$term_id integer Term ID of the currently edited term.
리턴 integer

get_group_title() 공개 메소드

Return the group title.
public get_group_title ( ) : string
리턴 string

get_key_base() 공개 메소드

Term key base for given site.
public get_key_base ( integer $site_id ) : string
$site_id integer Blog ID.
리턴 string

get_relation_id() 공개 메소드

Return the relation ID for the given blog ID and term taxonomy ID.
public get_relation_id ( integer $site_id, integer $term_taxonomy_id ) : string
$site_id integer Blog ID.
$term_taxonomy_id integer Term taxonomy ID.
리턴 string

get_site_languages() 공개 메소드

Return the available site languages.
public get_site_languages ( ) : array
리턴 array

get_taxonomy() 공개 메소드

Return the current taxonomy name.
public get_taxonomy ( ) : string
리턴 string

get_terms_for_site() 공개 메소드

Return the terms for the given type.
public get_terms_for_site ( integer $site_id ) : array
$site_id integer Blog ID.
리턴 array