public static function isChildPerson_educationlevel($EducationLevelId, $ChildEducationLevelId) { $ischild = false; $obj_retResult = DAL_managePerson_educationlevel::getPerson_educationlevelListByEducationLevelId($ChildEducationLevelId); //get child node if ($obj_retResult->type == 1) { $arr_Person_educationlevelList = $obj_retResult->data; $obj_Person_educationlevel = $arr_Person_educationlevelList[0]; $arrParentIds = explode(",", $obj_Person_educationlevel->Url); foreach ($arrParentIds as $Person_educationlevelParentId) { if ($Person_educationlevelParentId == $EducationLevelId) { $ischild = true; } } } return $ischild; }