PHP Interface Inpsyde\MultilingualPress\Common\Type\Language

Since: 3.0.0
Datei anzeigen Open project: inpsyde/multilingual-press Interface Usage Examples

Public Methods

Method Description
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.

Method Details

is_rtl() public method

Checks if the language is written right-to-left (RTL).
Since: 3.0.0
public is_rtl ( ) : boolean
return boolean Whether or not the language is written right-to-left (RTL).

name() public method

Returns the language name (or code) according to the given argument.
Since: 3.0.0
public name ( string $output = 'native' ) : string
$output string Optional. Output type. Defaults to 'native'.
return string Language name (or code) according to the given argument.

priority() public method

Returns the language priority.
Since: 3.0.0
public priority ( ) : integer
return integer Language priority.