При неудаче в запросе к БД валидные данные сохраняются в yaml-файл (script.php)
This commit is contained in:
@ -70,6 +70,17 @@ final class ContingentManager
|
||||
return $specializations;
|
||||
}
|
||||
|
||||
public function getOrgs(Database $db) : array
|
||||
{
|
||||
$sql = 'SELECT DISTINCT org_id FROM sveden_education_contingent';
|
||||
$org = $db->selectQuery($sql);
|
||||
$orgs = [];
|
||||
foreach ($org as $o) {
|
||||
$orgs[] = $o['org_id'];
|
||||
}
|
||||
return $orgs;
|
||||
}
|
||||
|
||||
public function buildURL(string $url): string
|
||||
{
|
||||
// Строит -> https://<base_uri>/sveden/education/
|
||||
|
Reference in New Issue
Block a user