Class lajax\translatemanager\controllers\LanguageController
Inheritance | lajax\translatemanager\controllers\LanguageController » yii\web\Controller |
---|---|
Available since version | 1.0 |
Controller for managing multilinguality.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$defaultAction | lajax\translatemanager\controllers\LanguageController | ||
$module | lajax\translatemanager\Module | TranslateManager module | lajax\translatemanager\controllers\LanguageController |
Public Methods
Method | Description | Defined By |
---|---|---|
actions() | lajax\translatemanager\controllers\LanguageController | |
behaviors() | lajax\translatemanager\controllers\LanguageController | |
createLanguageSourceDataProvider() | Returns an ArrayDataProvider consisting of language elements. | lajax\translatemanager\controllers\LanguageController |
findModel() | Finds the Language model based on its primary key value. | lajax\translatemanager\controllers\LanguageController |
Property Details
TranslateManager module
Method Details
public void actions ( ) |
public void behaviors ( ) |
Returns an ArrayDataProvider consisting of language elements.
public \yii\data\ArrayDataProvider createLanguageSourceDataProvider ( $languageSources ) | ||
$languageSources | array |
Finds the Language model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
public \lajax\translatemanager\controllers\Language findModel ( $id ) | ||
$id | string | |
return | \lajax\translatemanager\controllers\Language | The loaded model |
---|---|---|
throws | \lajax\translatemanager\controllers\NotFoundHttpException | if the model cannot be found |