table_common_member_newprompt.php 730 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: table_common_member_newprompt.php 27449 2012-06-28 05:32:35Z liulanbo $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_common_member_newprompt extends discuz_table
  12. {
  13. public function __construct() {
  14. $this->_table = 'common_member_newprompt';
  15. $this->_pk = 'uid';
  16. $this->_pre_cache_key = 'common_member_newprompt_';
  17. $this->_cache_ttl = 60;
  18. parent::__construct();
  19. }
  20. public function insert($uid, $data) {
  21. if(empty($uid) || empty($data)) {
  22. return false;
  23. }
  24. DB::insert($this->_table, array('uid' => intval($uid), 'data' => serialize($data)));
  25. }
  26. }
  27. ?>