base\Model validateMultiple()

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.

doc_Yii
2016-10-30 16:51:57
Comments
Leave a Comment

Please login to continue.