示例#1
0
 public function insert($cachename, $data)
 {
     parent::insert(array('cname' => $cachename, 'ctype' => is_array($data) ? 1 : 0, 'dateline' => TIMESTAMP, 'data' => is_array($data) ? serialize($data) : $data), false, true);
     if ($this->_allowmem && memory('get', $cachename) !== false) {
         memory('set', $cachename, $data);
     }
     $this->_isfilecache && @unlink(DISCUZ_ROOT . './data/cache/cache_' . $cachename . '.php');
 }
 public function insert($base)
 {
     if (!isset($base['inserttime'])) {
         $base['inserttime'] = date('Y-m-d H:i:s');
     }
     $picId = parent::insert($base, true);
     manyoulog('wirror_slider_pics', $picId, 'add');
 }
 public function insert($data, $return_insert_id = false, $replace = false, $silent = false)
 {
     if (!is_array($data['data'])) {
         return;
     }
     if (!$data['dateline']) {
         $data['dateline'] = TIMESTAMP;
     }
     $data['data'] = serialize($data['data']);
     return parent::insert($data, $return_insert_id, $replace, $silent);
 }
示例#4
0
 public function insert($tagname, $status = 0)
 {
     $data = array('tagname' => $tagname, 'status' => $status);
     return parent::insert($data, true);
 }