function getPerson_highereducationByResultId($sessionkey, $appcode, $id) { $main_result = "<VPROFILERESULT>"; $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>"; $userId = ValidateSession($sessionkey, $appcode); if ($userId > -1) { $main_result .= "<AUTHSTATUS>1</AUTHSTATUS>"; $result = BL_managePerson_highereducation::getPerson_highereducationListByResultId($id); if ($result->type == 1) { $arr_Person_highereducationList = $result->data; if (count($arr_Person_highereducationList) > 0) { $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>"; foreach ($arr_Person_highereducationList as $obj_Person_highereducation) { $main_result .= getPerson_highereducationXml($obj_Person_highereducation); } } else { $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>"; } } else { $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>"; } } $main_result .= "</VPROFILERESULT>"; return $main_result; }
public static function deletePerson_highereducation($obj_mainpacket) { $packet = $obj_mainpacket->packet; $ResultId = $packet[0]; $msg = "failed"; $result = 0; $result_ResultId = 0; $retResult = BL_managePerson_highereducation::getPerson_highereducationListByResultId($ResultId); if ($retResult->type == 1) { $obj_Person_highereducation = $retResult->data[0]; $obj_result2 = DAL_managePerson_highereducation::deletePerson_highereducation($obj_Person_highereducation->ResultId); if ($obj_result2->type == 1) { $result = 1; $result_ResultId = $obj_Person_highereducation->ResultId; $msg = "success"; } else { $msg = "Sorry!!! Problem occured while deleting this Person_highereducation"; } } else { $msg = "Sorry!!! The Person_highereducation you are tring to delete is not found"; } $obj_mainpacket->returnValues = array($result, $obj_Person_highereducation->ResultId, $msg); $obj_mainpacket->main_setPacket(); }