Ignore:
Timestamp:
Feb 20, 2008 5:57:32 PM (5 years ago)
Author:
thomasb
Message:

Add (currently unused) function to delete all contacts + update changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_contacts.inc

    r677 r1126  
    387387    return $this->db->affected_rows(); 
    388388  } 
     389   
     390   
     391  /** 
     392   * Remove all records from the database 
     393   */ 
     394  function delete_all() 
     395  { 
     396    if (is_array($ids)) 
     397      $ids = join(',', $ids); 
     398 
     399    $this->db->query("DELETE FROM {$this->db_name} WHERE  user_id=?", $this->user_id); 
     400    return $this->db->affected_rows(); 
     401  } 
    389402 
    390403} 
Note: See TracChangeset for help on using the changeset viewer.