PHP Class RainLab\Translate\FormWidgets\MLRepeater

Author: Alexey Bobkov, Samuel Georges
Inheritance: extends Backend\FormWidgets\Repeater, use trait RainLab\Translate\Traits\MLControl
Afficher le fichier Open project: rainlab/translate-plugin

Méthodes publiques

Свойство Type Description
$originalAssetPath
$originalViewPath

Protected Properties

Свойство Type Description
$defaultAlias {@inheritDoc}

Méthodes publiques

Méthode Description
getSaveValue ( $value ) : array Returns an array of translated values for this field
init ( ) {@inheritDoc}
onAddItem ( )
onSwitchItemLocale ( )
prepareVars ( )
render ( ) {@inheritDoc}

Méthodes protégées

Méthode Description
actAsParent ( $switch = true )
getLocaleSaveDataAsArray ( $locale ) : array Returns the stored locale data as an array.
getPrimarySaveDataAsArray ( ) : array Gets the active values from the selected locale.
loadAssets ( ) {@inheritDoc}
reprocessExistingLocaleItems ( $data ) : void Recreates form widgets based on number of repeater items.
rewritePostValues ( ) : void Since the locker does always contain the latest values, this method will take the save data from the repeater and merge it in to the locker based on which ever locale is selected using an item map

Method Details

actAsParent() protected méthode

protected actAsParent ( $switch = true )

getLocaleSaveDataAsArray() protected méthode

Returns the stored locale data as an array.
protected getLocaleSaveDataAsArray ( $locale ) : array
Résultat array

getPrimarySaveDataAsArray() protected méthode

Gets the active values from the selected locale.
protected getPrimarySaveDataAsArray ( ) : array
Résultat array

getSaveValue() public méthode

Returns an array of translated values for this field
public getSaveValue ( $value ) : array
Résultat array

init() public méthode

{@inheritDoc}
public init ( )

loadAssets() protected méthode

{@inheritDoc}
protected loadAssets ( )

onAddItem() public méthode

public onAddItem ( )

onSwitchItemLocale() public méthode

public onSwitchItemLocale ( )

prepareVars() public méthode

public prepareVars ( )

render() public méthode

{@inheritDoc}
public render ( )

reprocessExistingLocaleItems() protected méthode

Recreates form widgets based on number of repeater items.
protected reprocessExistingLocaleItems ( $data ) : void
Résultat void

rewritePostValues() protected méthode

Since the locker does always contain the latest values, this method will take the save data from the repeater and merge it in to the locker based on which ever locale is selected using an item map
protected rewritePostValues ( ) : void
Résultat void

Property Details

$defaultAlias protected_oe property

{@inheritDoc}
protected $defaultAlias

$originalAssetPath public_oe property

public $originalAssetPath

$originalViewPath public_oe property

public $originalViewPath