validateMultiple() public static method
Validates multiple models.
This method will validate every model. The models being validated may be of the same or different types.
public static boolean validateMultiple ( $models, $attributeNames = null ) | ||
---|---|---|
$models | array |
The models to be validated |
$attributeNames | array |
List of attribute names that should be validated. If this parameter is empty, it means any attribute listed in the applicable validation rules should be validated. |
return | boolean |
Whether all models are valid. False will be returned if one or multiple models have validation error. |
Please login to continue.