public function exportDelegation($id_delegation) { $model = new DelegSettleView(); $this->delegation = $model->findOne($id_delegation); $model = new TetaEmployeerAccounts(); $this->tetaEmployeerAccounts = $model->fetchRow('PRAC_ID = ' . addslashes($this->delegation->teta_id)); $this->position = 0; $this->insertOG(); $this->insertTravel(); $this->insertAdditionalCosts(); $this->insertOvernight(); $this->insertDiet(); }