33 lines
762 B
PHP
33 lines
762 B
PHP
<?php
|
|
|
|
/**
|
|
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
|
* This is NOT a freeware, use is subject to license terms
|
|
*
|
|
* $Id: table_common_member_newprompt.php 27449 2012-06-28 05:32:35Z liulanbo $
|
|
*/
|
|
|
|
if(!defined('IN_DISCUZ')) {
|
|
exit('Access Denied');
|
|
}
|
|
|
|
class table_common_member_newprompt extends discuz_table
|
|
{
|
|
public function __construct() {
|
|
|
|
$this->_table = 'common_member_newprompt';
|
|
$this->_pk = 'uid';
|
|
$this->_pre_cache_key = 'common_member_newprompt_';
|
|
$this->_cache_ttl = 60;
|
|
|
|
parent::__construct();
|
|
}
|
|
public function insert($uid, $data) {
|
|
if(empty($uid) || empty($data)) {
|
|
return false;
|
|
}
|
|
DB::insert($this->_table, array('uid' => intval($uid), 'data' => serialize($data)));
|
|
}
|
|
}
|
|
|
|
?>
|