protected function getDateText($date) { switch ($date) { case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_ACTUAL_MONTH: return $this->_("Actual month"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_ACTUAL_YEAR: return $this->_("Actual year"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_ALL_UNPAID_COMMISSIONS: return $this->_("All unpaid commissions"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_LAST_WEEK: return $this->_("Last week"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_LAST_TWO_WEEKS: return $this->_("Last two weeks"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_LAST_MONTH: return $this->_("Last month"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_LAST_YEAR: return $this->_("Last year"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_ALL_TIME: return $this->_("All time"); case Pap_Features_PerformanceRewards_Rule_Transaction::DATE_SINCE_DAY_OF_LAST_MONTH: return $this->_("Since %s day of last month", $this->rule->getSince()); } }