43 lines
1.1 KiB
PHP
Executable File
43 lines
1.1 KiB
PHP
Executable File
<?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($data, $return_insert_id = false, $replace = false, $silent = false) {
|
|
if (defined('DISCUZ_DEPRECATED')) {
|
|
throw new Exception('NotImplementedException');
|
|
return parent::insert($data, $return_insert_id, $replace, $silent);
|
|
} else {
|
|
return $this->insert_newprompt($data, $return_insert_id);
|
|
}
|
|
}
|
|
|
|
public function insert_newprompt($uid, $data) {
|
|
if(empty($uid) || empty($data)) {
|
|
return false;
|
|
}
|
|
DB::insert($this->_table, array('uid' => intval($uid), 'data' => serialize($data)));
|
|
}
|
|
}
|
|
|
|
?>
|