Esempio n. 1
0
 final function writeToDb()
 {
     $dbupdate = new Sqlite($this->__masterserver, $this->get__table());
     switch ($this->dbaction) {
         case "delete":
             $dbupdate->delRow("nname", $this->nname);
             break;
         case "add":
             $dbupdate->addRowObject($this);
             break;
         case "update":
             if (isset($this->__real_nname)) {
                 $dbupdate->setRowObject("nname", $this->__real_nname, $this);
             } else {
                 $dbupdate->setRowObject("nname", $this->nname, $this);
             }
             break;
     }
     return 1;
 }