| | |
| | | /** |
| | | * Count number of available contacts in database |
| | | * |
| | | * @return object rcube_result_set Result set with values for 'count' and 'first' |
| | | * @return rcube_result_set Result set with values for 'count' and 'first' |
| | | */ |
| | | abstract function count(); |
| | | |
| | | /** |
| | | * Return the last result set |
| | | * |
| | | * @return object rcube_result_set Current result set or NULL if nothing selected yet |
| | | * @return rcube_result_set Current result set or NULL if nothing selected yet |
| | | */ |
| | | abstract function get_result(); |
| | | |
| | |
| | | * |
| | | * @param array Assoziative array with save data |
| | | * @param boolean True to check for duplicates first |
| | | * @return The created record ID on success, False on error |
| | | * @return mixed The created record ID on success, False on error |
| | | */ |
| | | function insert($save_data, $check=false) |
| | | { |
| | |
| | | * |
| | | * @param mixed Record identifier |
| | | * @param array Assoziative array with save data |
| | | * @return True on success, False on error |
| | | * @return boolean True on success, False on error |
| | | */ |
| | | function update($id, $save_cols) |
| | | { |
| | |
| | | * Create a contact group with the given name |
| | | * |
| | | * @param string The group name |
| | | * @return False on error, array with record props in success |
| | | * @return mixed False on error, array with record props in success |
| | | */ |
| | | function create_group($name) |
| | | { |