Rename module from cyp_withdrawalbutton to simple_withdrawalbutton
- Main file: cyp_withdrawalbutton.php -> simple_withdrawalbutton.php - Admin controller: AdminCypWithdrawalController.php -> AdminSimpleWithdrawalController.php - Class: Cyp_Withdrawalbutton -> Simple_withdrawalbutton - DB table: cyp_withdrawal_request -> simple_withdrawal_request - Config keys: CYP_WITHDRAWAL_* -> SIMPLE_WITHDRAWAL_* - Admin tab: AdminCypWithdrawal -> AdminSimpleWithdrawal - All template mod attributes updated
This commit is contained in:
+4
-4
@@ -4,12 +4,12 @@ if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AdminCypWithdrawalController extends ModuleAdminController
|
||||
class AdminSimpleWithdrawalController extends ModuleAdminController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->bootstrap = true;
|
||||
$this->table = Cyp_Withdrawalbutton::TABLE_REQUEST;
|
||||
$this->table = Simple_withdrawalbutton::TABLE_REQUEST;
|
||||
$this->identifier = 'id_withdrawal_request';
|
||||
$this->lang = false;
|
||||
$this->explicitSelect = true;
|
||||
@@ -103,7 +103,7 @@ class AdminCypWithdrawalController extends ModuleAdminController
|
||||
}
|
||||
|
||||
$ok = Db::getInstance()->update(
|
||||
Cyp_Withdrawalbutton::TABLE_REQUEST,
|
||||
Simple_withdrawalbutton::TABLE_REQUEST,
|
||||
['status' => $status],
|
||||
'`id_withdrawal_request` = ' . (int) $id
|
||||
);
|
||||
@@ -119,7 +119,7 @@ class AdminCypWithdrawalController extends ModuleAdminController
|
||||
{
|
||||
$id = (int) Tools::getValue($this->identifier);
|
||||
$row = Db::getInstance()->getRow(
|
||||
'SELECT * FROM `' . _DB_PREFIX_ . pSQL(Cyp_Withdrawalbutton::TABLE_REQUEST) . '`
|
||||
'SELECT * FROM `' . _DB_PREFIX_ . pSQL(Simple_withdrawalbutton::TABLE_REQUEST) . '`
|
||||
WHERE `id_withdrawal_request` = ' . (int) $id
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user