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


PHP dbeav_model::delete方法代碼示例

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


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

示例1: delete

 function delete($filter, $subSdf = 'delete')
 {
     $bn = $this->get_branch_bn();
     //------------------------------------
     //同步刪除視頻文件
     $obj = $this->app->model('sales_touchscreen');
     $rs = $obj->dump($filter['ad_id']);
     if (isset($rs) && is_array($rs)) {
         //------------------------------------------------------
         //檢查權限
         //如果當前登陸用戶,是門店賬號,但刪除的資料不是該門店,
         //即沒有權限,退出。
         if (strlen($bn) > 0) {
             if ($bn != $rs['branch_bn']) {
                 return false;
             }
         }
         //------------------------------------------------------
         $vodfile = $rs['vodfile'];
         if (strlen($vodfile) > 5) {
             @unlink(ROOT_DIR . $vodfile);
         }
     }
     //------------------------------------
     return parent::delete($filter);
 }
開發者ID:noikiy,項目名稱:Ecstore-to-odoo,代碼行數:26,代碼來源:touchscreen.php

示例2: delete

 public function delete($filter, $subSdf = 'delete')
 {
     if (parent::delete($filter)) {
         kernel::single('site_module_base')->create_site_config();
         return true;
     } else {
         return false;
     }
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:9,代碼來源:modules.php

示例3: delete

 public function delete($filter, $subSdf = 'delete')
 {
     $hasroleMdl = app::get('desktop')->model('hasrole');
     $roleId = $hasroleMdl->getList('role_id', array('role_id' => $filter['role_id']));
     if ($roleId) {
         $msg = "含有已被使用角色,不可以刪除!";
         throw new \logicException($msg);
     }
     return parent::delete($filter);
 }
開發者ID:453111208,項目名稱:bbc,代碼行數:10,代碼來源:roles.php

示例4: delete

 function delete($filter, $subSdf = 'delete')
 {
     $o =& $this->app->model('goods_spec_index');
     if ($o->dump($filter)) {
         $this->recycle_msg = app::get('b2c')->_('規格已被商品使用');
         return false;
     }
     $o = $this->app->model('spec_values');
     $o->delete($filter);
     return parent::delete($filter);
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:11,代碼來源:specification.php

示例5: delete

 function delete($filter)
 {
     $o =& $this->app->model('goods_spec_index');
     if ($o->dump($filter)) {
         $this->recycle_msg = '規格已被商品使用';
         return false;
     }
     $o =& $this->app->model('spec_values');
     $o->delete($filter);
     return parent::delete($filter);
 }
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:11,代碼來源:specification.php

示例6: delete

 public function delete($filter, $subSdf = 'delete')
 {
     $info = $this->getList('grade_name,default_grade', $filter);
     foreach ($info as $value) {
         if ($value['default_grade'] == 1) {
             throw new \LogicException("[" . $value['grade_name'] . "]是係統等級,不可刪除");
             return false;
         }
     }
     return parent::delete($filter);
 }
開發者ID:453111208,項目名稱:bbc,代碼行數:11,代碼來源:grade.php

示例7: delete

 function delete($filter)
 {
     if ($id = $filter['type_id']) {
         $list = $this->getRow('name,type_id', array('type_id' => $id, 'bydefault' => 'true'));
         if ($list) {
             $this->recycle_msg = app::get('starbuy')->_('係統默認標簽不能刪除');
             return false;
         }
     }
     parent::delete($filter);
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:11,代碼來源:type.php

示例8: delete

 public function delete($filter, $subSdf = 'delete')
 {
     $rows = $this->getList('*', $filter);
     $res = parent::delete($filter, $subSdf);
     if ($res) {
         foreach ($rows as $row) {
             vmc::singleton('routeplus_rstatics')->del_dispatch($row['custom_url']);
             vmc::singleton('routeplus_rstatics')->del_genurl($row['url']);
         }
     }
     return $res;
 }
開發者ID:yindonghai,項目名稱:msk.com,代碼行數:12,代碼來源:statics.php

示例9: delete

 public function delete($filter, $subSdf = 'delete')
 {
     $rows = $this->getList('*', $filter);
     $res = parent::delete($filter, $subSdf);
     if ($res) {
         foreach ($rows as $row) {
             kernel::single('site_route_static')->del_dispatch($row['static']);
             kernel::single('site_route_static')->del_genurl($row['url']);
         }
     }
     return $res;
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:12,代碼來源:statics.php

示例10: delete

 /**
  * delete 方法重載
  *
  * 根據條件刪除條目
  * 不可以由pipe控製
  * 可以廣播事件
  * 
  * @param mixed $filter 
  * @param mixed $named_action 
  * @access public
  * @return void
  */
 public function delete($filter)
 {
     return parent::delete($filter);
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:16,代碼來源:refunds.php

示例11: delete

 public function delete($filter, $subSdf = 'delete')
 {
     $rs = parent::delete($filter, $subSdf);
     return $rs;
 }
開發者ID:noikiy,項目名稱:snk,代碼行數:5,代碼來源:goods.php

示例12: parent_delete

 private function parent_delete($filter, $subSdf = array())
 {
     if ($filter['member_id'] == '-1') {
         $arr = $_SESSION['b2c_cart_objects'][$filter['member_ident']];
         if ($arr && is_array($arr)) {
             foreach ($arr as $key => &$row) {
                 if ($row['obj_ident'] == $filter['obj_ident'] || empty($filter['obj_ident'])) {
                     unset($arr[$key]);
                 }
             }
         } else {
             $arr = array($data);
         }
         $_SESSION['b2c_cart_objects'][$filter['member_ident']] = $arr;
         return true;
     } else {
         $flag = parent::delete($filter, $subSdf);
         if ($filter['member_ident']) {
             $f = array('member_ident' => $filter['member_ident']);
         }
         if ($filter['member_id']) {
             $f['member_id'] = $filter['member_id'];
         }
         $arr = parent::getList('*', $f);
         #if( $arr )
         $this->kv_instance()->store($this->kv_prefix, $arr);
         #else
         #    $this->kv_instance()->delete( $this->kv_prefix );
         return $flag;
     }
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:31,代碼來源:objects.php

示例13: delete

 /**
  * 移除節點
  * @var int $node_id
  * @access public
  */
 public function delete($filter)
 {
     $rows = $this->getList('*', $filter);
     foreach ($rows as $row) {
         if ($this->has_chilren($row['node_id'])) {
             trigger_error(app::get('content')->_("節點『") . $row['node_name'] . app::get('content')->_("』下存在子節點,不能刪除"), E_USER_ERROR);
             return false;
             //存在子節點
         }
     }
     $res = parent::delete($filter);
     if ($res) {
         foreach ($rows as $row) {
             if ($row['parent_id'] > 0) {
                 $this->update_node_path($row['parent_id']);
             }
             //$this->upgrade_parent($row['node_id']);
             kernel::single('content_article_node')->delete_node_kvstore($row['node_id']);
             //todo: 清空kvstore值
         }
         kernel::single('content_article_node')->store_nodes_change();
         return true;
     } else {
         return false;
     }
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:31,代碼來源:nodes.php

示例14: delete

 function delete($filter)
 {
     $this->db->exec('DELETE FROM ' . $this->table_name(1) . ' WHERE goods_id IN (' . $this->_filter($filter) . ') ');
     return parent::delete($filter);
 }
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:5,代碼來源:goods.php

示例15: delete

 /**
  * 刪除數據.
  *
  * @param array $filter 符合刪除的條件
  *
  * @return bool 返回刪除結果
  */
 public function delete($filter, $subSdf = 'delete')
 {
     $rows = $this->getList('article_id', $filter);
     if (parent::delete($filter)) {
         foreach ($rows as $row) {
             vmc::singleton('content_article_detail')->delete_index_kvstore($row['article_id']);
             vmc::singleton('content_article_detail')->delete_body_kvstore($row['article_id']);
         }
         vmc::singleton('content_article_detail')->store_detail_change();
         return true;
     } else {
         return false;
     }
 }
開發者ID:yindonghai,項目名稱:msk.com,代碼行數:21,代碼來源:indexs.php


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