Upload docs draft
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user