Previous Page
locale()

Solar_Sql_Model_Filter_ValidateConfirm
validateConfirm()

Next Class
Solar_Sql_Model_Filter_ValidateUnique

validateConfirm()

public bool validateConfirm ( mixed $value, string $confirm_key default NULL )

Validates that the "confirmation" value is the same as the "real" value being confirmed.

Parameters

  • (mixed) $value: The value to validate.
  • (string) $confirm_key: Check against the value of this element in $this->_data. If $this->_data[$confirm_key] does not exist, the validation will pass. When empty, defaults to the current data col being processed, with suffix '_confirm'.

Returns

  • (bool) True if the values are the same or if the $confirm_key is not in the data being processed. False if the values are not the same.

Description

Validates that the "confirmation" value is the same as the "real" value being confirmed.

Useful for checking that the user entered the same password twice, or the same email twice, etc.