public function GroupSave($d) { $d->groupid = intval($d->groupid); $d->numcrs = intval($d->numcrs); $utmf = Abricos::TextParser(true); $d->numgroup = $utmf->Parser($d->numgroup); $d->currentFieldid = intval($d->currentFieldid); $d->year = intval($d->year); if ($d->groupid > 0) { RecordBookQuery::GroupEdit($this->db, $d); } else { RecordBookQuery::GroupAppend($this->db, $d); } }