protected function addDateParam(&$out, $field) { if ($sel = $this->getRequestParameter($field . '_sel')) { if ($sel == 4) { if ($date3 = $this->getRequestParameter($field . '3')) { $out[] = "{$field}={$date3}"; } } else { if ($date1 = $this->getRequestParameter($field)) { $date_md = c2cTools::writeWith2Digits($date1['month']) . c2cTools::writeWith2Digits($date1['day']); $date1 = $date1['year'] . $date_md; } if ($date2 = $this->getRequestParameter($field . '2')) { $date_md = c2cTools::writeWith2Digits($date2['month']) . c2cTools::writeWith2Digits($date2['day']); $date2 = $date2['year'] . $date_md; } $out[] = self::makeCompareQueryString($field, $sel, $date1, $date2); } } }