public function dbUpdate() { parent::dbUpdate(); if (!$this->cname || !$this->visible) { $this->cname = Misc::uriSafe($this->title); } $q = $this->db->buildQuery("UPDATE events SET object_id=%d, start='%s', end='%s', title='%s', cname='%s', description='%s', location='%s', featured=%d, hashtags='%s', album_id=%d where id=%d", $this->objectId, $this->start, $this->end, $this->title, $this->cname, $this->description, $this->location, $this->featured, $this->hashtags, $this->albumId, $this->id); Log::debug($q); $this->db->query($q); }
public function dbUpdate() { parent::dbUpdate(); if (!$this->cname) { $this->cname = Misc::uriSafe($this->title); } $q = $this->db->buildQuery("UPDATE articles SET object_id=%d, ip_addr='%s', title='%s', cname='%s', body='%s', featured=%d, hashtags='%s', album_id=%d where id=%d", $this->objectId, $this->ipAddr, $this->title, $this->cname, $this->body, $this->featured, $this->hashtags, $this->albumId, $this->id); Log::debug($q); $this->db->query($q); }
public function dbUpdate() { parent::dbUpdate(); }
public function dbUpdate() { parent::dbUpdate(); $q = $this->db->buildQuery("UPDATE users SET object_id=%d, email='%s', mail_auth_token='%s', auth_token='%s', admin=%d, verified=%d WHERE id=%d", $this->objectId, $this->email, $this->mailAuthToken, $this->authToken, $this->isAdmin, $this->isVerified, $this->id); $this->db->query($q); }
public function dbUpdate() { parent::dbUpdate(); $q = $this->db->buildQuery("UPDATE albums set object_id=%d, title='%s',system=%d WHERE id=%d", $this->title, $this->system, $this->id); $this->db->query($q); }