예제 #1
0
파일: event.php 프로젝트: robkaper/kiki
 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);
 }
예제 #2
0
파일: article.php 프로젝트: robkaper/kiki
 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);
 }
예제 #3
0
 public function dbUpdate()
 {
     parent::dbUpdate();
 }
예제 #4
0
파일: user.php 프로젝트: robkaper/kiki
 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);
 }
예제 #5
0
파일: album.php 프로젝트: robkaper/kiki
 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);
 }