tableNameDB} a WHERE a.id = " . $this->db->quote($this->id, 'integer') . " LIMIT 1"; $code = $this->db->queryOne($sql); return $code; } function updateStsLoginCode($code) { $data = array( 'stslogincode' => $code ); $this->_initTable(); $this->table->update($data, 'id = ' . $this->db->quote($this->id, 'integer')); return $this; } }