Esempio n. 1
0
 public function updateAgenda(array $data = array(), array $bookbuffer = array(), array $slotnum = array())
 {
     $model = new Slot();
     $permAgendaID = array();
     $resylt;
     Agenda::updateAll(['lastUpdate' => $this->lastUpdate], ['agendaID' => $this->agendaID]);
     $permAgendaID = $model->getIDs($this->agendaID);
     $permSlotIDs = $model->getIDs($this->agendaID);
     $permindex = 0;
     $b = 1;
     for ($index = 0; $index < sizeof($data); $permindex++) {
         if ($permAgendaID[$permindex]['slotnum'] == $slotnum[$index]) {
             echo $model->updateSlot($data[$index], $bookbuffer[$index], $permSlotIDs[$permindex]['slotID']);
             $index++;
         }
     }
     return 'updated';
 }