Beispiel #1
0
 public static function isChildUser($userId, $ChilduserId)
 {
     $ischild = false;
     $obj_retResult = DAL_manageUser::getUserListByuserId($ChilduserId);
     //get child node
     if ($obj_retResult->type == 1) {
         $arr_UserList = $obj_retResult->data;
         $obj_User = $arr_UserList[0];
         $arrParentIds = explode(",", $obj_User->Url);
         foreach ($arrParentIds as $UserParentId) {
             if ($UserParentId == $userId) {
                 $ischild = true;
             }
         }
     }
     return $ischild;
 }