navigate through workshops courses back and forth

This commit is contained in:
2019-09-08 16:21:56 +02:00
parent 56e8cdcbf3
commit d3532a3de7
9 changed files with 47 additions and 98 deletions

View File

@@ -79,6 +79,7 @@ class CATC extends Main
'success' => self::SUCCESS,
'context' => $this->asContext,
'cookie' => Auth::USER_COOKIE_PASS,
'workshops' => (new Course($this->oDb))->getWorkshops(),
'courses' => (new Course($this->oDb))->getCourses()
),
'vars' => $this->getVars()
@@ -117,12 +118,6 @@ class CATC extends Main
return $this->oAuth->checkApiKey($sApiKey);
}
/* Workshops / Courses */
public function getWorkshops() {
return self::getJsonResult(true, '', (new Course($this->oDb))->getWorkshops());
}
/* Notes*/
public function getNote($iCourseId) {