_table = 'forum_spacecache'; $this->_pk = ''; parent::__construct(); } public function fetch($uid, $variable) { return DB::fetch_first('SELECT * FROM %t WHERE uid=%d AND variable=%s', array($this->_table, $uid, $variable)); } public function fetch_all($uids, $variables) { if(empty($uids) || empty($variables)) { return array(); } return DB::fetch_all('SELECT * FROM %t WHERE '.DB::field('uid', $uids).' AND '.DB::field('variable', $variables), array($this->_table)); } public function delete($uid, $variable) { return DB::query('DELETE FROM %t WHERE uid=%d AND variable=%s', array($this->_table, $uid, $variable)); } } ?>