Solar_Filter_ValidateNotSame::validateSame()

public bool Solar_Filter_ValidateNotSame::validateSame ( mixed $value , string $other_key )

Validates that this value has a different value and/or type from some other value in the filter chain.

Parameters

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

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

Returns

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

Description

Validates that this value has a different value and/or type from some other value in the filter chain.

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



Local