PHP 클래스 yii2tech\admin\behaviors\action\VariationBehavior

This behavior should be attached to Action instance. This behavior relies on events triggered by ModelFormTrait.
또한 보기: https://github.com/yii2tech/ar-variation
또한 보기: yii2tech\admin\actions\ModelFormTrait
부터: 1.0
저자: Paul Klimov ([email protected])
상속: extends yii\base\Behavior
파일 보기 프로젝트 열기: yii2tech/admin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$variationNames list of model variation behavior names, which should be affected by the action. If empty - all instances of [[\yii2tech\ar\variation\VariationBehavior]] will be picked up.

공개 메소드들

메소드 설명
afterDataLoad ( ActionEvent $event ) Handles afterDataLoad event.
events ( )

보호된 메소드들

메소드 설명
afterAjaxValidate ( ActionEvent $event ) Handles afterAjaxValidate event.
findVariationModelBatches ( Model | yii\db\ActiveRecordInterface $model ) : array
getVariationModelBatches ( Model | yii\db\ActiveRecordInterface $model ) : array Get variation models for the main one in batches.

메소드 상세

afterAjaxValidate() 보호된 메소드

Performs AJAX validation of the variation models via [[ActiveForm::validate()]].
protected afterAjaxValidate ( ActionEvent $event )
$event yii2tech\admin\ActionEvent event instance.

afterDataLoad() 공개 메소드

Populates the variation models with input data.
public afterDataLoad ( ActionEvent $event )
$event yii2tech\admin\ActionEvent event instance.

events() 공개 메소드

public events ( )

findVariationModelBatches() 보호된 메소드

protected findVariationModelBatches ( Model | yii\db\ActiveRecordInterface $model ) : array
$model yii\base\Model | yii\db\ActiveRecordInterface
리턴 array list of variation models in format: behaviorName => Model[]

getVariationModelBatches() 보호된 메소드

Get variation models for the main one in batches.
protected getVariationModelBatches ( Model | yii\db\ActiveRecordInterface $model ) : array
$model yii\base\Model | yii\db\ActiveRecordInterface main model instance.
리턴 array list of variation models in format: behaviorName => Model[]

프로퍼티 상세

$variationNames 공개적으로 프로퍼티

list of model variation behavior names, which should be affected by the action. If empty - all instances of [[\yii2tech\ar\variation\VariationBehavior]] will be picked up.
public $variationNames