Workshops page

This commit is contained in:
2019-09-04 23:09:39 +02:00
parent b3ef86089b
commit 91b1a025c5
17 changed files with 245 additions and 64 deletions

View File

@@ -33,8 +33,8 @@ class CATC extends Main
'tables' => array
(
Auth::USER_TABLE => array(Db::getText(Auth::USER_TABLE), 'nickname', 'pass', 'cookie'),
'workshops' => array('dates'),
'courses' => array(Db::getId('workshops'), 'description', 'timeslot', 'notes'),
Course::WS_TABLE => array('dates'),
Course::COURSE_TABLE=> array(Db::getId('workshops'), 'description', 'timeslot', 'notes'),
'docs' => array(Db::getId('courses'), 'type', 'path'),
'todos' => array(Db::getId('courses'), 'description')
),
@@ -136,7 +136,12 @@ class CATC extends Main
return $this->oAuth->checkApiKey($sApiKey);
}
/* Managing projects */
/* Managing Courses */
public function getWorkshops() {
return self::getJsonResult(true, '', (new Course($this->oDb))->getWorkshops());
}
/*
public function upload()
{