当前位置: 首页>>代码示例>>PHP>>正文


PHP discuz_table::delete方法代码示例

本文整理汇总了PHP中discuz_table::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP discuz_table::delete方法的具体用法?PHP discuz_table::delete怎么用?PHP discuz_table::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在discuz_table的用法示例。


在下文中一共展示了discuz_table::delete方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: delete_by_pid

 public function delete_by_pid($pids)
 {
     if (empty($pids)) {
         return false;
     }
     return parent::delete($pids);
     //return DB::query('DELETE FROM %t WHERE '.DB::field('pid', $pids), array($this->_table));
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:8,代码来源:table_forum_hotreply_number.php

示例2: delete

 public function delete($val, $unbuffered = false)
 {
     if ($val = dintval($val, true)) {
         $this->_pre_cache_key = 'blockstylecache_';
         $this->_cache_ttl = getglobal('setting/memory/diyblock/ttl');
         $this->_allowmem = getglobal('setting/memory/diyblock/enable') && memory('check');
         return parent::delete($val, $unbuffered);
     }
     return false;
 }
开发者ID:softhui,项目名称:discuz,代码行数:10,代码来源:table_common_block_style.php

示例3: delete

 public function delete($val, $unbuffered = false, $fetch_archive = 0)
 {
     $ret = false;
     if ($val) {
         $ret = parent::delete($val, $unbuffered);
         if (isset($this->membersplit) && $fetch_archive) {
             $_ret = C::t($this->_table . '_archive')->delete($val, $unbuffered);
             if (!$unbuffered) {
                 $ret = $ret + $_ret;
             }
         }
     }
     return $ret;
 }
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:14,代码来源:discuz_table_archive.php

示例4: delete

 public function delete($val, $unbuffered = false)
 {
     if ($val = dintval($val, true)) {
         $ret = parent::delete($val, $unbuffered);
         $this->clear_cache($val);
         return $ret;
     }
     return false;
 }
开发者ID:softhui,项目名称:discuz,代码行数:9,代码来源:table_common_block.php

示例5: delete

 public function delete($cachenames)
 {
     parent::delete($cachenames);
     if ($this->_allowmem || $this->_isfilecache) {
         foreach ((array) $cachenames as $cachename) {
             $this->_allowmem && memory('rm', $cachename);
             $this->_isfilecache && @unlink(DISCUZ_ROOT . './data/cache/cache_' . $cachename . '.php');
         }
     }
 }
开发者ID:softhui,项目名称:discuz,代码行数:10,代码来源:table_common_syscache.php


注:本文中的discuz_table::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。