Exemple #1
0
 /**
  * @param int $iAccountId
  * @return bool
  */
 protected function deleteAccountRequests($iAccountId)
 {
     $bResult = true;
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccount($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccountMessages($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccountMessageBodies($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccountFilters($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccountReads($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccountFoldersTree($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteAccountFolders($iAccountId));
     $bResult &= $this->oConnection->Execute($this->oCommandCreator->DeleteIdentitiesByAccountId($iAccountId));
     return (bool) $bResult;
 }