assets/s2diosconfig.php /// Art: Business Logic /// Inhalt: Klasse osconfig /// Beschreibung: Business Logic für Auftragsverwaltungskonfiguration /// Benötigt: config.php, db.php /// CCML-Parsing: nein /// ////////////////////////////////////////////////////////////////////////////////////////// /// /// Letzte Änderungen: /// ////////////////////////////////////////////////////////////////////////////////////////// ///<21.01.2008/6.0.0.13/> if (!defined('SHOP_TO_DATE')) die('Forbidden'); // Klasse Konfiguration class config extends db { var $mode; var $page; var $direction; var $order; var $perpage; var $status; var $selected; var $x; var $y; // Konstruktor öffnet je nach Modus Konfiguration function config($mode) { $this->db(TABLE_OSCONFIG); $this->mode = $mode; $this->db_select(array('*'), array('mode' => $this->mode)); while ($row = $this->db_fetch()) { $key = $row->mykey; $this->$key = $row->value; } $this->db_free(); } // Konfigurationswert setzen function set($key, $value) { $this->db_update(array('value' => $value), array('mykey' => $key, 'mode' => $this->mode)); $this->$key = $value; } } ?>