mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
24 lines
463 B
PHP
24 lines
463 B
PHP
<?php
|
|
|
|
namespace AirQuality\Actions;
|
|
|
|
|
|
class FetchData {
|
|
private $settings;
|
|
private $validator;
|
|
|
|
public function __construct(
|
|
\SBRL\TomlConfig $in_settings,
|
|
\AirQuality\Database $in_database) {
|
|
$this->settings = $in_settings;
|
|
$this->database = $in_database;
|
|
$this->validator = new \AirQuality\Validator($_GET);
|
|
}
|
|
|
|
public function handle() {
|
|
$this->validator->is_datetime("datetime");
|
|
$this->validator->run();
|
|
|
|
echo("Params valid!");
|
|
}
|
|
}
|