/**
  * @param int $idGroup
  * @return ContactCollection
  */
 function &SelectAddressGroupContacts($idGroup)
 {
     $contacts = null;
     if ($this->_dbConnection->Execute($this->_commandCreator->SelectAddressGroupContacts($idGroup))) {
         $contacts =& new ContactCollection();
         while ($row = $this->_dbConnection->GetNextRecord()) {
             $contact =& new Contact();
             $contact->Id = $row->id;
             $contact->Name = $row->fullname;
             $contact->Email = $row->email;
             $contact->UseFriendlyName = (bool) $row->usefriendlyname;
             $contacts->Add($contact);
         }
     }
     return $contacts;
 }