Esempio n. 1
0
 /**
  * @param	AddressGroup	$group
  * @return	bool
  */
 public function UpdateGroup($group)
 {
     if ($this->_db->UpdateAddressGroup($group)) {
         $result = $this->_db->DeleteAddressGroupsContactsByIdGroup($group->Id);
         if ($result && $group->ContactsIds && count($group->ContactsIds) > 0) {
             foreach ($group->ContactsIds as $contactId) {
                 $result &= $this->InsertContactToGroup($contactId, $group->Id);
             }
         }
         return $result;
     }
     return false;
 }