При неудаче в запросе к БД валидные данные сохраняются в yaml-файл (script.php)
This commit is contained in:
@ -52,16 +52,15 @@ class ContingentParser
|
||||
{
|
||||
$data = $this->parse();
|
||||
$records = array();
|
||||
|
||||
if ($data == null) return [];
|
||||
|
||||
// var_dump($data['eduName']->item(0));
|
||||
// exit(0);
|
||||
|
||||
$equel = $data['eduName']->length;
|
||||
$equal = $data['eduName']->length;
|
||||
foreach ($data as $field) {
|
||||
if ($field->length == 0) {
|
||||
return [];
|
||||
}
|
||||
if ($field->length != $equel) {
|
||||
if ($field->length != $equal) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user