function install() { $sofortStatuses = $this->_insertAndReturnSofortStatus(); $confirmedStatus = isset($sofortStatuses['confirmed']) && !empty($sofortStatuses['confirmed']) ? $sofortStatuses['confirmed'] : ''; xtc_db_query("INSERT INTO " . HelperFunctions::escapeSql(TABLE_CONFIGURATION) . " ( configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_SOFORT_SL_STATUS', 'false', '6', '1', 'xtc_cfg_select_option(array(\\'true\\', \\'false\\'), ', now())"); xtc_db_query("INSERT INTO " . HelperFunctions::escapeSql(TABLE_CONFIGURATION) . " ( configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_SOFORT_SL_SORT_ORDER', '0', '6', '20', now())"); xtc_db_query("INSERT INTO " . HelperFunctions::escapeSql(TABLE_CONFIGURATION) . " ( configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_SOFORT_SL_RECOMMENDED_PAYMENT', 'false', '6', '1', 'xtc_cfg_select_option(array(\\'true\\', \\'false\\'), ', now())"); xtc_db_query("INSERT INTO " . HelperFunctions::escapeSql(TABLE_CONFIGURATION) . " ( configuration_key, configuration_value, configuration_group_id, sort_order, set_function, use_function, date_added) values ('MODULE_PAYMENT_SOFORT_SL_ORDER_STATUS_ID', '" . HelperFunctions::escapeSql($confirmedStatus) . "', '6', '10', 'xtc_cfg_pull_down_order_statuses(', 'xtc_get_order_status_name', now())"); xtc_db_query("INSERT INTO " . HelperFunctions::escapeSql(TABLE_CONFIGURATION) . " ( configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_SOFORT_SOFORTLASTSCHRIFT_ALLOWED', '', '6', '0', now())"); xtc_db_query("INSERT INTO " . HelperFunctions::escapeSql(TABLE_CONFIGURATION) . " ( configuration_key, configuration_value, configuration_group_id, sort_order, use_function, set_function, date_added) values ('MODULE_PAYMENT_SOFORT_SL_ZONE', '0', '6', '2', 'xtc_get_zone_class_title', 'xtc_cfg_pull_down_zone_classes(', now())"); //install shared keys, that are used by all/most multipay-modules parent::install(); }