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 isChildPerson_highereducation($ResultId, $ChildResultId)
 {
     $ischild = false;
     $obj_retResult = DAL_managePerson_highereducation::getPerson_highereducationListByResultId($ChildResultId);
     //get child node
     if ($obj_retResult->type == 1) {
         $arr_Person_highereducationList = $obj_retResult->data;
         $obj_Person_highereducation = $arr_Person_highereducationList[0];
         $arrParentIds = explode(",", $obj_Person_highereducation->Url);
         foreach ($arrParentIds as $Person_highereducationParentId) {
             if ($Person_highereducationParentId == $ResultId) {
                 $ischild = true;
             }
         }
     }
     return $ischild;
 }