Class hrzg\themes\berliner\controllers\PersonController

Inheritancehrzg\themes\berliner\controllers\PersonController » yii\web\Controller

PersonController implements the CRUD actions for Person model.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$enableCsrfValidation boolean Whether to enable CSRF validation for the actions in this controller. hrzg\themes\berliner\controllers\PersonController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionCreate() Creates a new Person model. hrzg\themes\berliner\controllers\PersonController
actionDelete() Deletes an existing Person model. hrzg\themes\berliner\controllers\PersonController
actionIndex() Lists all Person models. hrzg\themes\berliner\controllers\PersonController
actionUpdate() Updates an existing Person model. hrzg\themes\berliner\controllers\PersonController
actionView() Displays a single Person model. hrzg\themes\berliner\controllers\PersonController
behaviors() Restrict access permissions to admin user and users with auth-item 'module-controller' hrzg\themes\berliner\controllers\PersonController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findModel() Finds the Person model based on its primary key value. hrzg\themes\berliner\controllers\PersonController

Property Details

$enableCsrfValidation public property

Whether to enable CSRF validation for the actions in this controller. CSRF validation is enabled only when both this property and \hrzg\themes\berliner\controllers\Request::enableCsrfValidation are true.

Method Details

actionCreate() public method

Creates a new Person model.

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

public mixed actionCreate ( )
actionDelete() public method

Deletes an existing Person model.

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

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

Lists all Person models.

public mixed actionIndex ( )
actionUpdate() public method

Updates an existing Person model.

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

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

Displays a single Person model.

public mixed actionView ( $id )
$id integer
behaviors() public method

Restrict access permissions to admin user and users with auth-item 'module-controller'

public void behaviors ( )
findModel() protected method

Finds the Person model based on its primary key value.

If the model is not found, a 404 HTTP exception will be thrown.

protected hrzg\themes\berliner\models\Person findModel ( $id )
$id integer
return hrzg\themes\berliner\models\Person

The loaded model

throws \yii\web\HttpException

if the model cannot be found