Introduce new AJAX framework with improved class use
[infodrom.org/service.infodrom.org] / class / ajaxbackend.class.php
index 304e20e..234974b 100644 (file)
@@ -1,13 +1,10 @@
 <?php
 
-class AJAXBackend {
-  private $db;
-
-  public function __construct__()
+class AJAXBackend extends AJAXBackendBase {
+  public function salesText()
   {
-    global $db;
-    $this->db = $db;
+    $sales = new Sales($_POST['id']);
+    $sales->setDescription($_POST['text']);    
   }
 }
 
-?>
\ No newline at end of file