Skip to content
Snippets Groups Projects
Verified Commit 27824c04 authored by Damien's avatar Damien
Browse files

External SB controller

parent 721a34c5
No related branches found
No related tags found
No related merge requests found
......@@ -16,22 +16,32 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module,
if (file_exists($path)) {
$loadedXml = simplexml_load_file($path);
if ($loadedXml) {
$config['id'] = (string)$loadedXml->signatoryBookEnabled;
$config['id'] = (string)$loadedXml->signatoryBookEnabled;
$config['validatedStatus'] = (string)$loadedXml->validatedStatus;
$config['refusedStatus'] = (string)$loadedXml->refusedStatus;
foreach ($loadedXml->signatoryBook as $value) {
if ($value->id == $config['id']) {
$config['data'] = (array)$value;
}
}
}
}
if ($config['id'] == 'ixbus') {
include_once 'modules/visa/class/IxbusController.php';
$html = '';
if (!empty($config)) {
if ($config['id'] == 'ixbus') {
include_once 'modules/visa/class/IxbusController.php';
$html = IxbusController::getModal();
} elseif ($config['id'] == 'iParapheur') {
include_once 'modules/visa/class/iParapheurController.php';
$html = IxbusController::getModal($config);
} elseif ($config['id'] == 'iParapheur') {
include_once 'modules/visa/class/iParapheurController.php';
$html = iParapheurController::getModal();
} elseif ($config['id'] == 'fastParapheur') {
include_once 'modules/visa/class/fastParapheurController.php';
$html = iParapheurController::getModal($config);
} elseif ($config['id'] == 'fastParapheur') {
include_once 'modules/visa/class/fastParapheurController.php';
$html = fastParapheurController::getModal();
$html = fastParapheurController::getModal($config);
}
}
return addslashes($html);
......
......@@ -25,7 +25,7 @@ class IxbusController
</storeResourceRequest>
</soap:Body>
</soap:Envelope>';
$opts = [
CURLOPT_URL => '',
CURLOPT_HTTPHEADER => [
......@@ -48,7 +48,7 @@ class IxbusController
return $rawResponse;
}
public static function getModal()
public static function getModal(array $config)
{
$initializeDatas = IxbusController::getInitializeDatas();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment