コード例 #1
0
ファイル: WsPackage.php プロジェクト: knatorski/SMS
 public function getHeaderMappings()
 {
     if (isset($this->repeat_message) && $this->repeat_message == 0) {
         unset($this->headerMappings['repeat_interval'], $this->headerMappings['repeat_day_interval'], $this->headerMappings['repeat_days'], $this->headerMappings['repeat_count'], $this->headerMappings['repeat_end']);
     } elseif (isset($this->repeat_message) && $this->repeat_message == 1) {
         $dict = new Base_Dictionary();
         $dayDict = $dict->setSource('day_of_week')->getDictionary();
         if ($this->repeat_interval == 5) {
             $days = '';
             $daysJson = Zend_Json_Decoder::decode($this->repeat_days);
             foreach ($daysJson as $day) {
                 $days .= $dayDict[$day] . ' ';
             }
             $this->repeat_days = $days;
         }
     }
     return parent::getHeaderMappings();
 }