PHP Class NotContainedInValidator

User: petergallagher Date: 27/03/15 Time: 16:00.
Inheritance: extends CValidator
ファイルを表示 Open project: openeyes/openeyes

Public Properties

Property Type Description
$foreignKey Foreign key if not standard tablename_id
$model Name of the model to be checked against

Protected Methods

Method 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 method

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 method

Checks against the provided model to see if any foreign keys wit the current PK are found.
protected validateContainedInModel ( $value ) : CActiveRecord | null
$value
return 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