Exemplo n.º 1
0
 private function getModuleDataFromLms(ModulesRequest $request)
 {
     switch ($request->getLms()) {
         case Lms::CANVAS:
             $canvas = new CanvasHelper(DataType::MODULES);
             $canvas->getModuleData($request);
             return $this->dbHelper->getModuleData($request);
         default:
             $canvas = new CanvasHelper(DataType::MODULES);
             $canvas->getModuleData($request);
             return $this->dbHelper->getModuleData($request);
     }
 }