PHP 클래스 raoul2000\workflow\validation\WorkflowValidator

저자: raoul
상속: extends yii\validators\Validator
파일 보기 프로젝트 열기: raoul2000/yii2-workflow

공개 프로퍼티들

프로퍼티 타입 설명
$skipOnEmpty Overloads the default initialization value because by default, we want to run the validation even if the status attribute is null (which is considered as a 'leaveWorkflow' event).

공개 메소드들

메소드 설명
validateAttribute ( $object, $attribute ) Apply active validators for the current workflow event sequence.

비공개 메소드들

메소드 설명
_isActiveValidator ( Validator $validator, $currentScenario ) : boolean Checks if a validator is active for the workflow event passed as argument.

메소드 상세

validateAttribute() 공개 메소드

If a workflow event sequence is about to occur, this method scan all validators defined in the owner model, and applies the ones which are compatibles for the upcomming events.
또한 보기: raoul2000\workflow\events\IEventSequence
public validateAttribute ( $object, $attribute )

프로퍼티 상세

$skipOnEmpty 공개적으로 프로퍼티

Overloads the default initialization value because by default, we want to run the validation even if the status attribute is null (which is considered as a 'leaveWorkflow' event).
public $skipOnEmpty