Clarify update() result description, return boolean when ID didn't change
| | |
| | | * @param array Assoziative array with save data |
| | | * Keys: Field name with optional section in the form FIELD:SECTION |
| | | * Values: Field value. Can be either a string or an array of strings for multiple values |
| | | * @return boolean True on success, False on error |
| | | * |
| | | * @return mixed On success if ID has been changed returns ID, otherwise True, False on error |
| | | */ |
| | | function update($id, $save_cols) |
| | | { |
| | |
| | | * |
| | | * @param mixed Record identifier |
| | | * @param array Assoziative array with save data |
| | | * |
| | | * @return boolean True on success, False on error |
| | | */ |
| | | function update($id, $save_cols) |
| | |
| | | $this->result = null; // clear current result (from get_record()) |
| | | } |
| | | |
| | | return $updated; |
| | | return $updated ? true : false; |
| | | } |
| | | |
| | | |