organic: Enhance external apis
This commit is contained in:
@@ -224,8 +224,21 @@ if ($format === 'text') {
|
||||
$certNr = $m[0];
|
||||
}
|
||||
}
|
||||
$operator = ['lfbisNr' => null];
|
||||
if ($authorityId === 'AT-BIO-301') {
|
||||
// TODO
|
||||
} else if ($authorityId === 'AT-BIO-302') {
|
||||
if (preg_match("/^lfbis[^0-9]*([0-9]{7})$/im", $text, $matches) === 1)
|
||||
$operator['lfbisNr'] = $matches[1];
|
||||
} else if ($authorityId === 'AT-BIO-401') {
|
||||
// TODO
|
||||
} else if ($authorityId === 'AT-BIO-402') {
|
||||
// TODO
|
||||
} else if ($authorityId === 'AT-BIO-903') {
|
||||
// TODO
|
||||
}
|
||||
echo "{\"type\":\"$authorityId\",\"lang\":\"de\",\"id\":" . jenc($certId) . ",\"nr\":" . jenc($certNr);
|
||||
echo ",\n \"operator\":{},\n \"authority\":{\"id\":" . jenc($authorityId) . "}}\n";
|
||||
echo ",\n \"operator\":" . jenc($operator) . ",\n \"authority\":{\"id\":" . jenc($authorityId) . "}}\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user