if (empty($partnerId)) { $this->
forward('index'
);
return;
} $toDate =
$this->
Request()->
get('toDate'
);
$fromDate =
$this->
Request()->
get('fromDate'
);
// If a "fromDate" is passed, format it over the \DateTime object. Otherwise, create a new date with today
if (empty($fromDate) || !Zend_Date::
isDate($fromDate, 'Y-m-d'
)) { $fromDate =
new DateTime();
$fromDate =
$fromDate->
sub(new DateInterval('P1M'
));
} else { $fromDate =
new DateTime($fromDate);
} // If a "toDate" is passed, format it over the \DateTime object. Otherwise, create a new date with today
if (empty($toDate) || !Zend_Date::
isDate($toDate, 'Y-m-d'
)) { $toDate =
new DateTime();
} else { $toDate =
new DateTime($toDate);
}