PHP Class lajax\translatemanager\behaviors\TranslateBehavior

Installation: ~~~ [ 'class' => lajax\translatemanager\behaviors\TranslateBehavior::className(), 'translateAttributes' => ['names of multilingual fields'], ], ~~~ or If the category is the database table name. ~~~ [ 'class' => lajax\translatemanager\behaviors\TranslateBehavior::className(), 'translateAttributes' => ['names of multilingual fields'], 'category' => static::tableName(), ], ~~~
Since: 1.5.3
Author: Lajos Molnár ([email protected])
Inheritance: extends yii\behaviors\AttributeBehavior
Datei anzeigen Open project: lajax/yii2-translate-manager Class Usage Examples

Public Properties

Property Type Description
$category Category of message.
$translateAttributes array | string

Public Methods

Method Description
events ( )
init ( )
saveAttributes ( Event $event ) Saveing new language element by category.
translateAttributes ( Event $event ) Translates a message to the specified language.

Method Details

events() public method

public events ( )

init() public method

public init ( )

saveAttributes() public method

Saveing new language element by category.
public saveAttributes ( Event $event )
$event yii\base\Event

translateAttributes() public method

Translates a message to the specified language.
public translateAttributes ( Event $event )
$event yii\base\Event

Property Details

$category public_oe property

Category of message.
public $category

$translateAttributes public_oe property

public array|string $translateAttributes
return array | string