PHP 클래스 NotContainedInValidator

User: petergallagher Date: 27/03/15 Time: 16:00.
상속: extends CValidator
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$foreignKey Foreign key if not standard tablename_id
$model Name of the model to be checked against

보호된 메소드들

메소드 설명
validateAttribute ( CModel $object, string $attribute ) Validates a single attribute.
validateContainedInModel ( $value ) : CActiveRecord | null Checks against the provided model to see if any foreign keys wit the current PK are found.

메소드 상세

validateAttribute() 보호된 메소드

Validates a single attribute.
protected validateAttribute ( CModel $object, string $attribute )
$object CModel the data object being validated
$attribute string the name of the attribute to be validated.

validateContainedInModel() 보호된 메소드

Checks against the provided model to see if any foreign keys wit the current PK are found.
protected validateContainedInModel ( $value ) : CActiveRecord | null
$value
리턴 CActiveRecord | null

프로퍼티 상세

$foreignKey 공개적으로 프로퍼티

Foreign key if not standard tablename_id
public $foreignKey

$model 공개적으로 프로퍼티

Name of the model to be checked against
public $model