*** Backup Mirror *** The web interface and JSON api for the ConnectedHumber Air Quality Monitoring Project. https://github.com/ConnectedHumber/Air-Quality-Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Air-Quality-Web/logic/Actions/FetchData.php

24 lines
463 B

<?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!");
}
}