public setExtendedBounds ( string $min = '', string $max = '' ) | ||
$min | string | see link for formatting options |
$max | string | see link for formatting options |
public function setExtendedBounds($min = '', $max = '')
{
$bounds = [];
$bounds['min'] = $min;
$bounds['max'] = $max;
// switch if min is higher then max
if (strtotime($min) > strtotime($max)) {
$bounds['min'] = $max;
$bounds['max'] = $min;
}
return $this->setParam('extended_bounds', $bounds);
}