Exemplo n.º 1
0
 public static function make($request, $response, $target, $deleted)
 {
     /*{{{*/
     if ($target == 'doctorcomment') {
         $helper = new DoctorCommentListHelper($request, $response, $target);
         $dto = new DoctorCommentDto();
     } else {
         if ($target == 'doctorcommentpost') {
             $helper = new DoctorCommentPostListHelper($request, $response, $target);
             $dto = new DoctorCommentPostDto();
         } else {
             if ($target == 'doctorcommenttel') {
                 $helper = new DoctorCommentTelListHelper($request, $response, $target);
             } else {
                 if ($target == 'record') {
                     $helper = new InspectorDoctorCommentListHelper($request, $response, $target);
                     $dto = new DoctorCommentDto();
                     $dto->record = 1;
                 } else {
                     throw new AssertException('非法的target');
                 }
             }
         }
     }
     $dto->deleted = $deleted;
     return $helper->setDto($dto);
 }