public static function isEqualTo(array $parts, $direction, $equal_to = false)
    {
        if (!$equal_to) {
            return $parts;
        }

        if ($direction == 'later') {
            $parts['end'] = $parts['start'];
        } else {
            $parts['start'] = $parts['end'];
        }

        return $parts;
    }
public static function isEqualTo(array $parts, $direction, $equal_to = false)
    {
        if (!$equal_to) {
            return $parts;
        }

        if ($direction == 'later') {
            $parts['end'] = $parts['start'];
        } else {
            $parts['start'] = $parts['end'];
        }

        return $parts;
    }
public static function isEqualTo ( array $ parts , $ direction , $ equal_to = false ) { if ( ! $ equal_to ) { return $ parts ; } if ( $ direction == 'later' ) { $ parts [ 'end' ] = $ parts [ 'start' ] ; } else { $ parts [ 'start' ] = $ parts [ 'end' ] ; } return $ parts ; }
Builds the correct date array depending if the filter should include
the filter as well, ie. later than 2011, is effectively the same as
equal to or later than 2012.

@since Symphony 2.2.2
@param array $parts
An associative array containing a date in ISO8601 format (or natural)
with two keys, start and end.
@param string $direction
Either later or earlier, defaults to null.
@param boolean $equal_to
If the filter is equal_to or not, defaults to false.
@return array
Builds the correct date array depending if the filter should include the filter as well ie . later than 2011 is effectively the same as equal to or later than 2012 .