PHP Class NotContainedInValidator

User: petergallagher Date: 27/03/15 Time: 16:00.
Inheritance: extends CValidator
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$foreignKey Foreign key if not standard tablename_id
$model Name of the model to be checked against

Méthodes protégées

Méthode Description
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.

Method Details

validateAttribute() protected méthode

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() protected méthode

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

Property Details

$foreignKey public_oe property

Foreign key if not standard tablename_id
public $foreignKey

$model public_oe property

Name of the model to be checked against
public $model