Ejemplo n.º 1
0
 /**
  * @param AddressBookRecord $addressBookRecordRecord
  * @return bool
  */
 function InsertAddressBookRecord(&$addressBookRecordRecord)
 {
     if (!$this->_dbConnection->Execute($this->_commandCreator->InsertAddressBookRecord($addressBookRecordRecord))) {
         return false;
     }
     $addressBookRecordRecord->IdAddress = $this->_dbConnection->GetLastInsertId();
     return true;
 }
Ejemplo n.º 2
0
 /**
  * @param AddressBookRecord $addressBookRecordRecord
  * @return bool
  */
 function InsertAddressBookRecord(&$addressBookRecordRecord)
 {
     if ($this->_dbConnection->Execute($this->_commandCreator->InsertAddressBookRecord($addressBookRecordRecord))) {
         $addressBookRecordRecord->IdAddress = $this->_dbConnection->GetLastInsertId();
         $addressBookRecordRecord->StrId = AddressBookRecord::STR_PREFIX . $addressBookRecordRecord->IdAddress;
         return $this->UpdateContactStrId($addressBookRecordRecord->IdAddress, $addressBookRecordRecord->StrId);
     }
     return false;
 }