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


PHP OrderState::delete方法代码示例

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


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

示例1: removeState

 public function removeState($statename)
 {
     if ($id_state = Configuration::get($statename)) {
         $state = new OrderState($id_state);
         $state->delete();
     }
 }
开发者ID:ulozenka,项目名称:prestashop-1-5,代码行数:7,代码来源:PrestahostModuleInstall.php

示例2: uninstall

 public function uninstall()
 {
     // Removing the order status Neteven
     $order_state = new OrderState((int) Gateway::getConfig('ID_ORDER_STATE_NETEVEN'));
     if (!$order_state->delete()) {
         return false;
     }
     // Uninstalling the module
     if (!Configuration::deleteByName('neteven_date_export_product') || !$this->uninstallDB() || !parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:ventsiwad,项目名称:presta_addons,代码行数:13,代码来源:nqgatewayneteven.php

示例3: uninstall

 /**
  * @brief Uninstall function
  *
  * @return Success or failure
  */
 public function uninstall()
 {
     // Uninstall parent and unregister Configuration
     Db::getInstance()->Execute('DROP TABLE IF EXISTS `' . _DB_PREFIX_ . 'payu_token`');
     $orderState = new OrderState((int) Configuration::get('PAYU_WAITING_PAYMENT'));
     $orderState->delete();
     Configuration::deleteByName('PAYU_WAITING_PAYMENT');
     if (!parent::uninstall()) {
         return false;
     }
     return true;
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:17,代码来源:payulatam.php

示例4: deleteOrderState

 public static function deleteOrderState()
 {
     $tab_os = array();
     $tab_os[] = 'PS_OS_SYSPAY_AUTHORIZED';
     $tab_os[] = 'PS_OS_SYSPAY_CB';
     $tab_os[] = 'PS_OS_SYSPAY_CB_DELIVERED';
     $tab_os[] = 'PS_OS_SYSPAY_CB_PIP';
     $tab_os[] = 'PS_OS_SYSPAY_CB_SHIPPED';
     $tab_os[] = 'PS_OS_SYSPAY_REFUND_DELIVERED';
     $tab_os[] = 'PS_OS_SYSPAY_REFUND_PIP';
     $tab_os[] = 'PS_OS_SYSPAY_REFUND_SHIPPED';
     foreach ($tab_os as $key) {
         $id = Configuration::get($key);
         if ($id) {
             Configuration::deleteByName($key);
             $os = new OrderState($id);
             $os->delete();
         }
     }
 }
开发者ID:antho-girard,项目名称:syspay,代码行数:20,代码来源:install_tools.php

示例5: uninstall

 public function uninstall()
 {
     $orderState = new OrderState((int) Configuration::get('SAC_ID_FRAUD'), Configuration::get('PS_LANG_DEFAULT'));
     if (!$orderState->delete()) {
         return false;
     }
     $orderState = new OrderState((int) Configuration::get('SAC_ID_WAITING'), Configuration::get('PS_LANG_DEFAULT'));
     if (!$orderState->delete()) {
         return false;
     }
     return parent::uninstall();
 }
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:12,代码来源:fianetfraud.php

示例6: uninstall

 public function uninstall()
 {
     $id = Configuration::get('YA_POKUPKI_CUSTOMER');
     $customer = new Customer($id);
     $customer->id = $id;
     $customer->delete();
     Db::getInstance()->execute('DROP TABLE IF EXISTS ' . _DB_PREFIX_ . 'pokupki_orders');
     foreach ($this->status as $s) {
         $os = new OrderState((int) $s);
         $os->id = $s;
         $os->delete();
     }
     return parent::uninstall();
 }
开发者ID:handaehan,项目名称:yandex-money-cms-prestashop,代码行数:14,代码来源:yamodule.php

示例7: deleteStates

 private function deleteStates()
 {
     for ($index = 0; $index <= 7; $index++) {
         $order_state = new OrderState(Configuration::get('MERCADOPAGO_STATUS_' . $index));
         if (!$order_state->delete()) {
             return false;
         }
     }
     return true;
 }
开发者ID:GrupoGirat,项目名称:cart-prestashop,代码行数:10,代码来源:mercadopago.php

示例8: removeOrderStatus

 private function removeOrderStatus()
 {
     $orderState = new OrderState(Configuration::get('PAYMENTWALL_ORDER_AWAITING'));
     $orderState->delete();
 }
开发者ID:paymentwall,项目名称:module-prestashop,代码行数:5,代码来源:paymentwall.php

示例9: deleteBcashOrderStatus

 private function deleteBcashOrderStatus()
 {
     foreach (BcashStatusHelper::getCustomOrderStatusBcash() as $key => $statusBcash) {
         $order_state = new OrderState(Configuration::get('PS_OS_BCASH_' . $key));
         if (!$order_state->delete()) {
             return false;
         }
     }
     return true;
 }
开发者ID:payu-br,项目名称:bcash-prestashop-transparente,代码行数:10,代码来源:bcash.php


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