コード例 #1
0
 public function FieldSave($d)
 {
     $utmf = Abricos::TextParser(true);
     $d->id = intval($d->id);
     $d->depart = $utmf->Parser($d->depart);
     $d->frmstudy = intval($d->frmstudy);
     $d->levelid = intval($d->levelid);
     $d->note = $utmf->Parser($d->note);
     if ($d->id !== 0) {
         RecordBookQuery::FieldUpdate(Abricos::$db, $d);
     } else {
         return RecordBookQuery::FieldAppend(Abricos::$db, $d) . '';
     }
 }