<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

use Kufer\Admin\Classes\Settings\Helper\Tools\ReiterTermine;

$sortId = 4;
$toolId = 10;

$settingsArray = array();
$objsettings = ToolSettingsAPI::getToolSettings($toolId);

$settingsArray = ReiterTermine::addReiterTerminKurstagStatus($toolId, $objsettings, $settingsArray);

$setting = new Setting();
$setting->name = 'sortktasc';
$setting->description = 'Sortierung der Termine<br>- nach Datum';
$setting->subGroup = 'Reiter Termine';
$setting->toolId = $toolId;
$setting->config->loadConfiguration(SC_RADIO);
$setting->config->items = array(
  'nrauf' => 'aufsteigend',
  'nrab' => 'absteigend'
);
array_push($settingsArray, $setting);