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