public static function isChildVillage_history($TblId, $ChildTblId) { $ischild = false; $obj_retResult = DAL_manageVillage_history::getVillage_historyListByTblId($ChildTblId); //get child node if ($obj_retResult->type == 1) { $arr_Village_historyList = $obj_retResult->data; $obj_Village_history = $arr_Village_historyList[0]; $arrParentIds = explode(",", $obj_Village_history->Url); foreach ($arrParentIds as $Village_historyParentId) { if ($Village_historyParentId == $TblId) { $ischild = true; } } } return $ischild; }