Piwik\Plugin\Controller::setMaxDateView PHP Method

setMaxDateView() protected method

Sets the last date available in the period selector's calendar. Usually this is just the "today" date for a site (which varies based on the timezone of a site).
protected setMaxDateView ( Date $maxDate, View $view )
$maxDate Piwik\Date The max date.
$view Piwik\View The view that contains the period selector.
    protected function setMaxDateView(Date $maxDate, $view)
    {
        $view->maxDateYear = $maxDate->toString('Y');
        $view->maxDateMonth = $maxDate->toString('m');
        $view->maxDateDay = $maxDate->toString('d');
    }