コード例 #1
0
<?php

require_once CODE_ROOT . '/classes/integrity.php';
require_once CODE_ROOT . '/classes/operations.php';
require_once CODE_ROOT . '/classes/surgeons.php';
$integrity = new Integrity();
$integrity->result['views']['mainContent'] = 'integrity/form.php';
$operations = new Operations();
$yearsOperations = $operations->getOperationsYears();
if ($yearsOperations === false) {
    $integrity->result['message'][] = 'Ошибка при получении экстремумов даты операций';
    $integrity->result['success'] = false;
}
$integrityForm = filter_input(INPUT_GET, 'integrityForm', FILTER_VALIDATE_INT, Helpers::$filterForIntPositive);
if ($integrityForm === 1) {
    $period = filter_input(INPUT_GET, 'period', FILTER_VALIDATE_INT, Helpers::$filterForIntPositive);
    $year = filter_input(INPUT_GET, 'year', FILTER_VALIDATE_INT, Helpers::$filterForIntPositive);
    $integrity->getGeneralChecks($year, $period);
}
$result = $integrity->result;