Exemplo n.º 1
0
 public function sektorVerileriKaydet($evrak_pk, $tableName)
 {
     $colCount = 2;
     $sektorValues = FormFactory2::getTableValues($_POST, array($tableName, $colCount));
     $result = FormFactory2::sektorVerisiSil($evrak_pk);
     for ($i = 0; $result && $i < count($sektorValues) / $colCount; $i++) {
         $id = $sektorValues[$i * $colCount] == "Seçiniz" ? null : $sektorValues[$i * $colCount];
         $aciklama = $sektorValues[$i * $colCount + 1];
         $result = FormFactory2::sektorVerisiEkle($evrak_pk, $id, $aciklama);
     }
     return $result;
 }