public function standingOrder($value, $name, $account_number, $bank_code, $subject, $period, $start_date, $end_date = false) { debug('standing order ' . $name); //$this->setTanmediumId($this->tanmedium_id); $transfer_name = date('Y-m-d_H-i') . '_' . $bank_code . '-' . $account_number; $name = str_replace('"', '', $name); $value = number_format(floatval($value), 2, ',', '') . ':EUR'; $enddate = ''; if ($end_date !== false) { $enddate = ' --lastExecutionDate="' . $end_date . '"'; } $command = new CommandBuilder('aqbanking-cli' . $this->is . ' -P "' . $this->config_dir . '/pinfile" -D "' . $this->config_dir . '/config' . '" transfer --executionCycle=1 --executionPeriod="' . $period . '" --rbank="' . $bank_code . '" --raccount="' . $account_number . '" --rname="' . $name . '" --executionDay=1 --firstExecutionDate=' . $start_date . '' . $enddate); $command->addFlag('c', $this->config_dir . '/transfer/' . $transfer_name . '.ctx')->addFlag('v', $value)->addFlag('p', $subject)->addFlag('a', $this->account_number)->addFlag('b', $this->bank_code); echo "\n\n" . $command->__toString() . "\n\n"; $this->shell->run($command); return true; }