public function GoogleMini::setDateFilter in Google Search Appliance 5
Same name and namespace in other branches
- 6.2 GoogleMini.php \GoogleMini::setDateFilter()
Creates a date filter
Parameters
date $date_before Date in YYYY-MM-DD format.:
date $date_after Date in YYYY-MM-DD format.:
File
- ./
GoogleMini.php, line 109
Class
Code
public function setDateFilter($date_before, $date_after) {
if ($this->_queryParts['q']) {
$this->_queryParts['q'] .= "%20daterange:{$date_before}..{$date_after}";
}
else {
$this
->setQueryPart('q', "daterange:{$date_before}..{$date_after}");
}
}