function updatePerson_highereducation($sessionkey, $appcode, $Person_highereducationdata) { $main_result = "<VPROFILERESULT>"; $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>"; $userId = ValidateSession($sessionkey, $appcode); if ($userId > -1) { $main_result = "<AUTHSTATUS>1</AUTHSTATUS>"; $obj_Person_highereducation = new Person_highereducation(); foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) { switch ($key) { case "RESULTID": $obj_Person_highereducation->ResultId = $child; break; case "SUBJECTID": $obj_Person_highereducation->SubjectId = $child; break; case "INSTITUTEID": $obj_Person_highereducation->InstituteId = $child; break; case "GRADE": $obj_Person_highereducation->Grade = $child; break; case "LANGUAGE": $obj_Person_highereducation->Language = $child; break; case "DATETIME": $obj_Person_highereducation->DateTime = $child; break; case "PERSONID": $obj_Person_highereducation->PersonId = $child; break; case "LEVEL": $obj_Person_highereducation->Level = $child; break; } } $obj_retResult_Person_highereducation = DAL_managePerson_highereducation::updatePerson_highereducation($obj_Person_highereducation); if ($obj_retResult_Person_highereducation->type == 1) { $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>"; $main_result .= getPerson_highereducationXml($obj_retResult_Person_highereducation->data); } else { $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>"; } } $main_result .= "</VPROFILERESULT>"; return $main_result; }
public static function updatePerson_highereducation2($ResultId, $SubjectId, $InstituteId, $Grade, $Language, $DateTime, $PersonId, $Level) { $obj_retResult = new returnResult(); $obj_newPerson_highereducation = new Person_highereducation(); $obj_newPerson_highereducation->ResultId = $ResultId; $obj_newPerson_highereducation->SubjectId = $SubjectId; $obj_newPerson_highereducation->InstituteId = $InstituteId; $obj_newPerson_highereducation->Grade = $Grade; $obj_newPerson_highereducation->Language = $Language; $obj_newPerson_highereducation->DateTime = $DateTime; $obj_newPerson_highereducation->PersonId = $PersonId; $obj_newPerson_highereducation->Level = $Level; $issuccess = DAL_managePerson_highereducation::updatePerson_highereducation($obj_newPerson_highereducation); if ($issuccess) { $obj_retResult->type = 1; // $obj_retResult->data = BL_managePerson_highereducation::getPerson_highereducationByResultId($obj_newPerson_highereducation->ResultId); $obj_retResult->msg = "Person_highereducation updation is Success"; } else { $obj_retResult->type = 0; $obj_retResult->msg = "Person_highereducation updation is Failed"; } return $obj_retResult; }