new text editor: tinyMCE
This commit is contained in:
12
inc/catc.php
12
inc/catc.php
@@ -130,6 +130,13 @@ class CATC extends Main
|
||||
|
||||
/* Notes*/
|
||||
|
||||
public function getNoteOld($iCourseId) {
|
||||
$oNote = new Note($this->oDb, $this->oAuth->getUserId(), $iCourseId);
|
||||
$asNote = $oNote->getNoteOld();
|
||||
|
||||
return self::getJsonResult(!empty($asNote), '', $asNote);
|
||||
}
|
||||
|
||||
public function getNote($iCourseId) {
|
||||
$oNote = new Note($this->oDb, $this->oAuth->getUserId(), $iCourseId);
|
||||
$asNote = $oNote->getNote();
|
||||
@@ -137,10 +144,9 @@ class CATC extends Main
|
||||
return self::getJsonResult(!empty($asNote), '', $asNote);
|
||||
}
|
||||
|
||||
public function setNote($iCourseId, $asOps) {
|
||||
if(is_string($asOps)) $asOps = json_decode($asOps, true);
|
||||
public function setNote($iCourseId, $sNotes) {
|
||||
$oNote = new Note($this->oDb, $this->oAuth->getUserId(), $iCourseId);
|
||||
$sError = $oNote->setNote($asOps);
|
||||
$sError = $oNote->setNote($sNotes);
|
||||
$bSuccess = ($sError=='');
|
||||
|
||||
$asData = ($bSuccess)?array('led_time' => $oNote->getNote()['led_time']):array();
|
||||
|
||||
Reference in New Issue
Block a user