Assign a doc to a workshop and not a course

This commit is contained in:
2019-09-18 19:21:02 +02:00
parent 49fbf665e8
commit c36d33890e
5 changed files with 25 additions and 14 deletions

View File

@@ -143,15 +143,15 @@ class CATC extends Main
/* Docs */
public function getDocs($iCourseId) {
$oDoc = new Doc($this->oDb, $this->oAuth->getUserId(), $iCourseId);
public function getDocs($iWorkshopId) {
$oDoc = new Doc($this->oDb, $this->oAuth->getUserId(), $iWorkshopId);
$asDocList = $oDoc->getList();
return self::getJsonResult(!empty($asDocList), '', $asDocList);
}
public function uploadDoc($iCourseId) {
public function uploadDoc($iWorkshopId) {
$this->oClassManagement->incClass('uploader', true);
$oDoc = new Doc($this->oDb, $this->oAuth->getUserId(), $iCourseId);
$oDoc = new Doc($this->oDb, $this->oAuth->getUserId(), $iWorkshopId);
$oUploader = new Uploader($oDoc);
return $oUploader->sBody;