public function GoogleMini::setDateFilter in Google Search Appliance 6.2
Same name and namespace in other branches
- 5 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 107
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}");
}
}