Example #1
0
 /**
  * Removes all account data from database.
  * 
  * @param int $iAccountId Identifier of account to remove.
  * 
  * @return bool
  */
 protected function _deleteAccountRequests($iAccountId)
 {
     $bResult = true;
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountMessagesQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountMessageBodiesQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountFiltersQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountReadsQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountFoldersTreeQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteAccountFoldersQuery($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->deleteIdentitiesByAccountIdQuery($iAccountId));
     return (bool) $bResult;
 }