Class yeesoft\translation\controllers\SourceController

Inheritanceyeesoft\translation\controllers\SourceController » yeesoft\controllers\admin\BaseController » yeesoft\controllers\BaseController » yii\web\Controller

SourceController implements the CRUD actions for yeesoft\translation\models\MessageSource model.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_implementedActions array yeesoft\controllers\admin\BaseController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findModel() Finds the model based on its primary key value. yeesoft\controllers\admin\BaseController
getRedirectPage() yeesoft\translation\controllers\SourceController
renderIsAjax() Render ajax or usual depends on request yeesoft\controllers\BaseController

Property Details

$enableOnlyActions public property
public $enableOnlyActions = ['update''create''delete']
$modelClass public property
public $modelClass 'yeesoft\translation\models\MessageSource'

Method Details

actionCreate() public method

Creates a new model.

If creation is successful, the browser will be redirected to the 'view' page.

public mixed actionCreate ( )
actionDelete() public method

Deletes an existing model.

If deletion is successful, the browser will be redirected to the 'index' page.

public mixed actionDelete ( $id )
$id integer
actionUpdate() public method

Updates an existing model.

If update is successful, the browser will be redirected to the 'view' page.

public mixed actionUpdate ( $id )
$id integer
getRedirectPage() protected method

protected void getRedirectPage ( $action, $model null )
$action
$model