Beispiel #1
0
 public function executeImportIndex(sfWebRequest $request)
 {
     if ($request->isMethod("post") && $request->hasParameter("dt") && $request->hasParameter("redirect_loc")) {
         switch ($request->getParameter("redirect_loc")) {
             case "delete":
                 $this->forward("adminratingCriteria", "deleteHistory");
                 break;
             case "good":
                 $this->forward("adminratingCriteria", "importGood");
                 break;
             case "mismatched":
                 $this->forward("adminratingCriteria", "importMismatched");
                 break;
         }
     } else {
         $conn = Propel::getConnection();
         $this->history = AutoCourseRatingPeer::getImportHistory($conn);
     }
 }