本文整理汇总了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();
}
}
示例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;
}
示例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;
}
示例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();
}
}
}
示例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();
}
示例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();
}
示例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;
}
示例8: removeOrderStatus
private function removeOrderStatus()
{
$orderState = new OrderState(Configuration::get('PAYMENTWALL_ORDER_AWAITING'));
$orderState->delete();
}
示例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;
}