Example #1
0
 protected final function getThisFromDb()
 {
     $dbacc = new Sqlite($this->__masterserver, $this->get__table());
     $result = $dbacc->getRows("nname", $this->nname);
     if (!$result) {
         $this->initThisDef();
         $this->dbaction = "add";
         return 0;
     }
     $this->setFromArray($result[0]);
     return 1;
 }