コード例 #1
0
 private function _getRecurringFrequency(Payment_Invoice_Subscription $recurrenceInfo)
 {
     switch ($recurrenceInfo->getCycle()) {
         case 'D':
             $t = 'days';
             break;
         case 'W':
             $t = 'week';
             break;
         case 'M':
             $t = 'month';
             break;
         case 'Y':
             $t = 'year';
             break;
         default:
             $t = 'month';
             break;
     }
     return $recurrenceInfo->getCycle() . ' ' . $t;
 }