PHP 클래스 Inpsyde\MultilingualPress\Common\Type\AliasAwareLanguage

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Common\Type\Language
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( array $data ) Constructor. Sets up the properies.
is_rtl ( ) : boolean Checks if the language is written right-to-left (RTL).
name ( string $output = 'native' ) : string Returns the language name (or code) according to the given argument.
priority ( ) : integer Returns the language priority.

비공개 메소드들

메소드 설명
get_names ( array $data ) : string[] Returns the complete set of language names and codes for the given language data.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properies.
부터: 3.0.0
public __construct ( array $data )
$data array Language data.

is_rtl() 공개 메소드

Checks if the language is written right-to-left (RTL).
부터: 3.0.0
public is_rtl ( ) : boolean
리턴 boolean Whether or not the language is written right-to-left (RTL).

name() 공개 메소드

Returns the language name (or code) according to the given argument.
부터: 3.0.0
public name ( string $output = 'native' ) : string
$output string Optional. Output type. Defaults to 'native'. TODO: Check/Adapt formatting to provide best possible readibility for both inline and rendered documentation. Possible values: * native: Native name of the language (default, e.g., "Deutsch" for German). * english: English name of the language. * custom: Language name as defined in the site settings. * text: Alias for "custom". * http: HTTP code of the language (e.g., "de-DE"). * language_long: Alias for "http". * language_short: First part of "http" (e.g., "de" for "de-DE"). * lang: Alias for "language_short". * wp_locale: WordPress locale representing the language. * none: No text output (e.g,. for displaying the flag icon only).
리턴 string Language name (or code) according to the given argument.

priority() 공개 메소드

Returns the language priority.
부터: 3.0.0
public priority ( ) : integer
리턴 integer Language priority.