`DTABase::addExchange`

Adds an exchange. First the account data for the receiver of the exchange is set. In the case the DTA file contains credits, this is the payment receiver.

       require_once '/DTABase.php';

         boolean
         DTABase::addExchange

         array
         $account_receiver

         double
         $amount

         array
         $purposes

         array

          $account_sender = array()

&title.desc;

If the sender is not specified, values of the file sender are used by default.

Account data for receiver and sender contain the following fields: name Name. bank_code Bank code. account_number Account number. additional_name If necessary, additional line for name.

&title.param;

&type.array; `$account_receiver`

- Receiver's account data.

`double` `$amount`

- Amount of money in this exchange. Currency: EURO

&type.array; `$purposes`

- An Array of lines or a string for description of the exchange.

&type.array; `$account_sender`

- Sender's account data.

&title.abstract;

abstract

&title.throws;

throws no exceptions thrown

&title.note; ¬e.notstatic;