PHP Class RainLab\Translate\Components\LocalePicker

Inheritance: extends Cms\Classes\ComponentBase
Mostrar archivo Open project: rainlab/translate-plugin

Public Properties

Property Type Description
$activeLocale The active locale code.
$activeLocaleName The active locale name.
$locales Collection of enabled locales.

Protected Properties

Property Type Description
$translator Translator object.

Public Methods

Method Description
componentDetails ( )
defineProperties ( )
init ( )
onRun ( )
onSwitchLocale ( )

Protected Methods

Method Description
makeLocaleUrlFromPage ( $locale ) : string Returns the URL from a page object, including current parameter values.
redirectForceUrl ( )

Method Details

componentDetails() public method

public componentDetails ( )

defineProperties() public method

public defineProperties ( )

init() public method

public init ( )

makeLocaleUrlFromPage() protected method

Returns the URL from a page object, including current parameter values.
protected makeLocaleUrlFromPage ( $locale ) : string
return string

onRun() public method

public onRun ( )

onSwitchLocale() public method

public onSwitchLocale ( )

redirectForceUrl() protected method

protected redirectForceUrl ( )

Property Details

$activeLocale public_oe property

The active locale code.
public $activeLocale

$activeLocaleName public_oe property

The active locale name.
public $activeLocaleName

$locales public_oe property

Collection of enabled locales.
public $locales

$translator protected_oe property

Translator object.
protected $translator