public static function isChildService($ServiceId, $ChildServiceId) { $ischild = false; $obj_retResult = DAL_manageService::getServiceListByServiceId($ChildServiceId); //get child node if ($obj_retResult->type == 1) { $arr_ServiceList = $obj_retResult->data; $obj_Service = $arr_ServiceList[0]; $arrParentIds = explode(",", $obj_Service->Url); foreach ($arrParentIds as $ServiceParentId) { if ($ServiceParentId == $ServiceId) { $ischild = true; } } } return $ischild; }