protected function prepareParams() { $this->params->setStatus($this->getStatuses()); $this->params->setAffiliateId($this->rule->getUserID()); $this->params->setCampaignId($this->rule->getCampaignId()); if (!$this->rule->getDateRange()->isAllTime()) { $this->params->setRange($this->rule->getDateRange()); } if ($this->rule->getDate() == Pap_Features_PerformanceRewards_Rule::DATE_ALL_UNPAID_COMMISSIONS) { $this->params->setPayoutStatus(Pap_Common_Constants::PSTATUS_UNPAID); } }