PHP Класс yii2tech\admin\CrudController

The class of the ActiveRecord should be specified via [[modelClass]], which must implement ActiveRecordInterface. By default, the following actions are supported: - index: list of models - view: the details of a model - create: create a new model - update: update an existing model - delete: delete an existing model You may disable some of these actions by overriding CrudController::actions and unsetting the corresponding actions.
С версии: 1.0
Автор: Paul Klimov ([email protected])
Наследование: extends yii\web\Controller
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$createScenario the scenario used for creating a model.
$modelClass the model class name. This property must be set. The model class must implement [[ActiveRecordInterface]].
$searchModelClass class name of the model which should be used as search model. If not set it will be composed using [[modelClass]].
$updateScenario the scenario used for updating a model.

Открытые методы

Метод Описание
accessRules ( ) : array Returns the access rules for this controller.
actions ( )
behaviors ( )

Описание методов

accessRules() публичный Метод

This is method is a shortcut, allowing quick adjustment of the [[AccessControl]] filter attached at CrudController::behaviors. Be careful in case you override CrudController::behaviors method, since it may loose configuration provided by this method.
public accessRules ( ) : array
Результат array list of access rules. See [[AccessControl::rules]] for details about rule specification.

actions() публичный Метод

public actions ( )

behaviors() публичный Метод

public behaviors ( )

Описание свойств

$createScenario публичное свойство

the scenario used for creating a model.
См. также: Model::scenarios()
public $createScenario

$modelClass публичное свойство

the model class name. This property must be set. The model class must implement [[ActiveRecordInterface]].
public $modelClass

$searchModelClass публичное свойство

class name of the model which should be used as search model. If not set it will be composed using [[modelClass]].
public $searchModelClass

$updateScenario публичное свойство

the scenario used for updating a model.
См. также: Model::scenarios()
public $updateScenario