Air-Quality-Web/logic/Actions/FetchData.php

25 lines
463 B
PHP
Raw Normal View History

<?php
namespace AirQuality\Actions;
2019-01-14 20:17:36 +00:00
class FetchData {
private $settings;
2019-01-14 20:41:25 +00:00
private $validator;
public function __construct(
\SBRL\TomlConfig $in_settings,
\AirQuality\Database $in_database) {
$this->settings = $in_settings;
$this->database = $in_database;
2019-01-14 20:41:25 +00:00
$this->validator = new \AirQuality\Validator($_GET);
}
public function handle() {
2019-01-14 20:41:25 +00:00
$this->validator->is_datetime("datetime");
$this->validator->run();
echo("Params valid!");
}
}