function update() { global $ilDB; /*$q = "UPDATE note SET ". "rep_obj_id = ".$ilDB->quote((int) $this->rep_obj_id, "integer").",". "obj_id = ".$ilDB->quote((int) $this->obj_id, "integer").",". "obj_type = ".$ilDB->quote((string) $this->obj_type, "text").",". "type = ".$ilDB->quote((int) $this->type, "integer").",". "author = ".$ilDB->quote((int) $this->author,"integer").",". "note_text = ".$ilDB->quote((string) $this->text, "clob").",". "subject = ".$ilDB->quote((string) $this->subject, "text").",". "update_date = ".$ilDB->now().",". "label = ".$ilDB->quote((int) $this->label, "integer"). "WHERE id =".$ilDB->quote((int) $this->getId(), "integer"); $ilDB->manipulate($q);*/ $ilDB->update("note", array("rep_obj_id" => array("integer", (int) $this->rep_obj_id), "obj_id" => array("integer", (int) $this->obj_id), "obj_type" => array("text", (string) $this->obj_type), "type" => array("integer", (int) $this->type), "author" => array("integer", (int) $this->author), "note_text" => array("clob", (string) $this->text), "subject" => array("text", (string) $this->subject), "label" => array("integer", (int) $this->label), "update_date" => array("timestamp", ilUtil::now()), "no_repository" => array("integer", $this->no_repository)), array("id" => array("integer", $this->getId()))); $this->update_date = ilNote::_lookupUpdateDate($this->getId()); }