function delAssignData($index, $postArr, $getArr) { switch ($index) { case 'BBS': $cashbensal = new CashBenSalary(); $arr[0] = $postArr['chkdel']; $size = count($arr[0]); for ($c = 0; $size > $c; $c++) { if ($arr[0][$c] != NULL) { $arr[1][$c] = $getArr['id']; } } $cashbensal->delCashBenefits($arr); break; case 'NBS': $noncashbensal = new NonCashBenSalary(); $arr[0] = $postArr['chkdel']; $size = count($arr[0]); for ($c = 0; $size > $c; $c++) { if ($arr[0][$c] != NULL) { $arr[1][$c] = $getArr['id']; } } $noncashbensal->delCashBenefits($arr); break; case 'DQA': $desqual = new DesQualification(); $arr[1] = $postArr['chkdel']; $size = count($arr[1]); for ($c = 0; $size > $c; $c++) { if ($arr[1][$c] != NULL) { $arr[0][$c] = $getArr['id']; } } $desqual->delJDQual($arr); break; case 'DQS': $desqualsub = new DesQualSubject(); $arr[1] = $postArr['chkdel']; $size = count($arr[1]); for ($c = 0; $size > $c; $c++) { if ($arr[1][$c] != NULL) { $arr[0][$c] = $getArr['id']; $arr[2][$c] = $getArr['QUA']; } } $desqualsub->delQuaSub($arr); break; case 'SGR': $salcurdet = new SalCurDet(); $arr[1] = $postArr['chkdel']; $size = count($arr[1]); for ($c = 0; $size > $c; $c++) { if ($arr[1][$c] != NULL) { $arr[0][$c] = $getArr['id']; } } $salcurdet->delSalCurDet($arr); break; case 'RTG': $ratgrd = new RatingGrade(); $arr[0] = $postArr['chkdel']; for ($c = 0; count($arr[0]) > $c; $c++) { if ($arr[0][$c] != NULL) { $arr[1][$c] = $getArr['id']; } } $ratgrd->delRatGrd($arr); break; case 'UGR': $urights = new Rights(); $urights->clearRights($getArr['id']); break; } }
function delAssignData($index, $postArr, $getArr) { switch ($index) { case 'UGR': $urights = new Rights(); $urights->clearRights($getArr['id']); break; } }