mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
performance optimizations at the frontend
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@224 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
@@ -26,16 +26,10 @@ class Rain{
|
||||
var $sensId;
|
||||
|
||||
/* Konstruktor, Holt die Werte aus der Datenbank und fuellt die Variablen damit */
|
||||
function Rain($sensId, & $connection){
|
||||
function Rain($sensId, & $connection, $table){
|
||||
$this->connection = &$connection;
|
||||
$this->sensId = $sensId;
|
||||
|
||||
/* Tabelle des Sensors bestimmen */
|
||||
$tableQuery = "SELECT tabelle FROM sensoren, typen WHERE sensoren.id=".$sensId." AND typen.typ = sensoren.typ";
|
||||
$table = $connection->fetchQueryResultLine($tableQuery);
|
||||
$table = trim($table['tabelle']);
|
||||
$this->table = $table;
|
||||
|
||||
}
|
||||
|
||||
/* Momentane Werte aus der Datenbank holen */
|
||||
|
||||
Reference in New Issue
Block a user