當前位置: 首頁>>代碼示例>>PHP>>正文


PHP XDB::delete方法代碼示例

本文整理匯總了PHP中XDB::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP XDB::delete方法的具體用法?PHP XDB::delete怎麽用?PHP XDB::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在XDB的用法示例。


在下文中一共展示了XDB::delete方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: delete_by_uid

 public function delete_by_uid($uid)
 {
     if (!$uid) {
         return null;
     }
     return XDB::delete($this->_table, XDB::field('uid', $uid));
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:7,代碼來源:table_sanree_brand_album.php

示例2: delete_by_variable

 public function delete_by_variable($pluginid, $variable)
 {
     if (!$pluginid || !$variable) {
         return;
     }
     XDB::delete($this->_table, XDB::field('pluginid', $pluginid) . ' AND ' . XDB::field('variable', $variable));
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:7,代碼來源:table_common_pluginvar.php

示例3: delete_by_tid

 public function delete_by_tid($tids)
 {
     $tids = dintval($tids, true);
     if ($tids) {
         return XDB::delete($this->_table, XDB::field('tid', $tids));
     }
     return 0;
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:8,代碼來源:table_forum_threadmod.php

示例4: delete

 public function delete($val, $unbuffered = false)
 {
     $ret = false;
     if (isset($val)) {
         $this->checkpk();
         $ret = XDB::delete($this->_table, XDB::field($this->_pk, $val), null, $unbuffered);
         $this->clear_cache($val);
     }
     return $ret;
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:10,代碼來源:discuz_table.php

示例5: delete_none_threads

 public function delete_none_threads()
 {
     return XDB::delete($this->_table, "threads='0'");
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_forum_forum_threadtable.php

示例6: delete_by_bids

 public function delete_by_bids($bids)
 {
     XDB::delete($this->_table, XDB::field('bid', $bids));
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_sanree_brand_voterlog.php

示例7: srdelete

 public function srdelete($val, $condition = '', $unbuffered = false)
 {
     $ret = false;
     if (isset($val)) {
         $this->checkpk();
         $where = '';
         if (empty($condition)) {
             $where = XDB::field($this->_pk, $val);
         } elseif (is_array($condition)) {
             $where = XDB::field($this->_pk, $val) . ' AND ' . self::implode($condition, ' AND ');
         } else {
             $where = XDB::field($this->_pk, $val) . ' AND ' . $condition;
         }
         $ret = XDB::delete($this->_table, $where, null, $unbuffered);
         $this->clear_cache($val);
     }
     return $ret;
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:18,代碼來源:table_sanree_brand_diystyle.php

示例8: delete_by_groupids

 public function delete_by_groupids($groupids)
 {
     XDB::delete($this->_table, XDB::field('groupid', $groupids));
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_sanree_brand_group_module.php

示例9: delete_by_module

 public function delete_by_module($module)
 {
     XDB::delete($this->_table, XDB::field('module', $module));
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_sanree_brand_language.php

示例10: delete_by_tid

 public function delete_by_tid($tids)
 {
     return !empty($tids) ? XDB::delete($this->_table, XDB::field('tid', $tids)) : false;
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_forum_threadimage.php

示例11: move_thread_by_tid

 public function move_thread_by_tid($tids, $source, $target)
 {
     $source = intval($source);
     $target = intval($target);
     if ($source != $target) {
         XDB::query('REPLACE INTO %t SELECT * FROM %t WHERE tid IN (%n)', array($this->get_table_name($target), $this->get_table_name($source), $tids));
         return XDB::delete($this->get_table_name($source), XDB::field('tid', $tids));
     } else {
         return false;
     }
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:11,代碼來源:table_forum_thread.php

示例12: delete_by_fid

 public function delete_by_fid($tableid, $fids, $unbuffered = false)
 {
     return XDB::delete(self::get_tablename($tableid), XDB::field('fid', $fids), 0, $unbuffered);
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_forum_post.php

示例13: delete

 public function delete($val, $unbuffered = false, $uid = 0)
 {
     $val = dintval($val, is_array($val) ? true : false);
     if ($val) {
         if ($uid) {
             $uid = dintval($uid, is_array($uid) ? true : false);
         }
         return XDB::delete($this->_table, XDB::field($this->_pk, $val) . ($uid ? ' AND ' . XDB::field('uid', $uid) : ''), null, $unbuffered);
     }
     return !$unbuffered ? 0 : false;
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:11,代碼來源:table_home_favorite.php

示例14: delete_by_id

 public function delete_by_id($tableid, $idtype, $id)
 {
     return $this->_check_id($idtype, $id) ? XDB::delete($this->_get_table($tableid), XDB::field($idtype, $id)) : false;
 }
開發者ID:herosrx,項目名稱:shops,代碼行數:4,代碼來源:table_forum_attachment_n.php


注:本文中的XDB::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。