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
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@ if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class Cyp_WithdrawalbuttonWithdrawModuleFrontController extends ModuleFrontController
|
||||
class Simple_withdrawalbuttonWithdrawModuleFrontController extends ModuleFrontController
|
||||
{
|
||||
public $ssl = true;
|
||||
public $auth = false;
|
||||
@@ -32,8 +32,8 @@ class Cyp_WithdrawalbuttonWithdrawModuleFrontController extends ModuleFrontContr
|
||||
'csrf_token' => $this->module->getFrontToken(),
|
||||
'action_url' => $this->context->link->getModuleLink($this->module->name, 'withdraw', [], true),
|
||||
'success_data' => $this->successData,
|
||||
'privacy_url' => (string) Configuration::get(Cyp_Withdrawalbutton::CONF_PRIVACY_URL),
|
||||
'revocation_url' => (string) Configuration::get(Cyp_Withdrawalbutton::CONF_REVOCATION_URL),
|
||||
'privacy_url' => (string) Configuration::get(Simple_withdrawalbutton::CONF_PRIVACY_URL),
|
||||
'revocation_url' => (string) Configuration::get(Simple_withdrawalbutton::CONF_REVOCATION_URL),
|
||||
]);
|
||||
|
||||
if ($this->currentView === 'confirm') {
|
||||
|
||||
Reference in New Issue
Block a user