Solar_Filter_ValidateSame::validateSame()

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

Validates that this value has the same value and type as some other element 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 the same value and type as some other element in the filter chain.

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



Local