本文整理汇总了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));
}
示例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;
}
示例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;
}
示例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;
}
示例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');
}
}
}