Example #1
0
     echo json_encode($result);
     exit;
 case 'deleteProject':
     $result = DbManager::deleteProject($request->data);
     echo json_encode($result);
     exit;
 case 'deleteTestimonial':
     $result = DbManager::deleteTestimonial($request->data);
     echo json_encode($result);
     exit;
 case 'saveNewProject':
     $result = DbManager::saveNewProject($request->data);
     echo json_encode($result);
     exit;
 case 'getTestimonials':
     $result = DbManager::getTestimonials();
     echo json_encode($result);
     exit;
 case "getProjects":
     $result = DbManager::getProjects($request->data);
     echo json_encode($result);
     exit;
 case "getProject":
     $result = DbManager::getProject($request->data);
     echo json_encode($result);
     exit;
 case "editTestimonial":
     $result = DbManager::editTestimonial($request->data);
     echo json_encode($result);
     exit;
 case "editProject":