Solar_Filter_ValidateEquals::validateEquals()

public bool Solar_Filter_ValidateEquals::validateEquals ( mixed $value , string $other_key )

Validates that this value is equal to some other element in the filter chain (note that equality is not strict, so type does not matter).

Parameters

  • (mixed) $value: The value to validate.

  • (string) $other_key: Check against the value of this element in $this->_data.

Returns

  • (bool) True if the values are equal, false if not equal.

Description

Validates that this value is equal to some other element in the filter chain (note that equality is not strict, so type does not matter).

If the other element does not exist in $this->_data, the validation will fail.



Local