예제 #1
0
 function updateIM($im, $type, $username, $idcontact_instant_message)
 {
     $cim_im = new ContactInstantMessage();
     $cim_im->getId($idcontact_instant_message);
     // Primarykey id of the record to update
     $cim_im->im_options = $im;
     $cim_im->im_type = $type;
     $cim_im->im_username = $username;
     $cim_im->update();
 }