Upload docs draft

This commit is contained in:
2019-09-07 21:09:13 +02:00
parent 32d4917964
commit 35efcf2293
17 changed files with 1725 additions and 70 deletions

View File

@@ -43,4 +43,11 @@ class Course extends PhpObject {
return $asWorkshops;
}
public function getCourses($iWorkshopId=0) {
$asInfo = array('select'=> array(Db::getId(self::COURSE_TABLE), 'description', 'timeslot'), 'from' => self::COURSE_TABLE);
if($iWorkshopId > 0) $asInfo['constraint'] = array(Db::getId(self::WS_TABLE) => $iWorkshopId);
return $this->oDb->selectRows($asInfo, Db::getId(self::COURSE_TABLE));
}
}