Beispiel #1
0
 /**
  * Inittiert Objekt mit Daten aus der Datenbank, sofern ID vergeben wurde
  */
 protected function init()
 {
     $data = $this->dbcon->fetch($this->dbcon->select($this->table, '*', "modkey " . $this->dbcon->dbLike() . " ?", array($this->modkey)));
     if (!$data) {
         return false;
     }
     $this->objExists = true;
     $this->isInstalled = true;
     foreach ($data as $key => $value) {
         $this->{$key} = $value;
     }
 }
Beispiel #2
0
 /**
  * Aktualisiert einen Artikel in der Datenbank
  * @return boolean
  */
 public function update()
 {
     return $this->dbcon->update($this->table, array('execinterval'), array($this->execinterval, $this->cronName), 'cjname ' . $this->dbcon->dbLike() . ' ?');
 }