PHP Class GP_Locale, GlotPress-WP

Show file Open project: GlotPress/GlotPress-WP

Public Properties

Property Type Description
$country_code
$english_name
$facebook_locale
$google_code
$lang_code_iso_639_1
$lang_code_iso_639_2
$lang_code_iso_639_3
$native_name
$nplurals
$plural_expression
$preferred_sans_serif_font_family
$slug
$text_direction
$wp_locale

Public Methods

Method Description
__construct ( $args = [] )
__get ( string $name ) : mixed Make deprecated properties readable for backwards compatibility.
__isset ( string $name ) : boolean Make deprecated properties checkable for backwards compatibility.
__set_state ( $state )
combined_name ( )
index_for_number ( $number )
numbers_for_index ( $index, $how_many = 3, $test_up_to = 1000 )

Method Details

__construct() public method

public __construct ( $args = [] )

__get() public method

Make deprecated properties readable for backwards compatibility.
public __get ( string $name ) : mixed
$name string Property to get.
return mixed Property.

__isset() public method

Make deprecated properties checkable for backwards compatibility.
public __isset ( string $name ) : boolean
$name string Property to check if set.
return boolean Whether the property is set.

__set_state() public static method

public static __set_state ( $state )

combined_name() public method

public combined_name ( )

index_for_number() public method

public index_for_number ( $number )

numbers_for_index() public method

public numbers_for_index ( $index, $how_many = 3, $test_up_to = 1000 )

Property Details

$country_code public property

public $country_code

$english_name public property

public $english_name

$facebook_locale public property

public $facebook_locale

$google_code public property

public $google_code

$lang_code_iso_639_1 public property

public $lang_code_iso_639_1

$lang_code_iso_639_2 public property

public $lang_code_iso_639_2

$lang_code_iso_639_3 public property

public $lang_code_iso_639_3

$native_name public property

public $native_name

$nplurals public property

public $nplurals

$plural_expression public property

public $plural_expression

$preferred_sans_serif_font_family public property

public $preferred_sans_serif_font_family

$slug public property

public $slug

$text_direction public property

public $text_direction

$wp_locale public property

public $wp_locale