BaseModule
class BaseModule implements BaseModuleInterface
Traits
Constants
CLASSIC_MODULE_TYPE |
|
DELIVERY_MODULE_TYPE |
|
PAYMENT_MODULE_TYPE |
|
MODULE_CATEGORIES |
|
IS_ACTIVATED |
|
IS_NOT_ACTIVATED |
|
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Check if this module is the payment module for a given order
Check if this module is the delivery module for a given order
A convenient method to get the current order total, with or without tax, discount or postage.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 66
activate(
Module $moduleModel = null)
This method is called when the module is activated
at line 92
deActivate(
Module $moduleModel = null)
This method is called when the module is deactivated
at line 115
hasContainer()
at line 120
getContainer()
at line 129
hasRequest()
at line 134
setRequest(
Request $request)
at line 144
Request
getRequest()
at line 158
hasDispatcher()
at line 163
setDispatcher(
EventDispatcherInterface $dispatcher)
at line 172
EventDispatcherInterface
getDispatcher()
at line 189
setTitle(
Module $module,
array $titles)
at line 216
static
string
getConfigValue(
string $variableName,
string $defaultValue = null,
null $valueLocale = null)
at line 225
static
$this;
setConfigValue(
string $variableName,
string $variableValue,
null $valueLocale = null,
bool $createIfNotExists = true)
at line 234
deployImageFolder(
Module $module,
string $folderPath,
ConnectionInterface $con = null)
at line 313
Module
getModuleModel()
at line 341
static
string
getModuleId()
at line 362
static
string
getModuleCode()
at line 372
string
getCode()
at line 383
bool
isPaymentModuleFor(
Order $order)
Check if this module is the payment module for a given order
at line 396
bool
isDeliveryModuleFor(
Order $order)
Check if this module is the delivery module for a given order
at line 415
float|int
getCurrentOrderTotalAmount(
bool $with_tax = true,
bool $with_discount = true,
bool $with_postage = true)
A convenient method to get the current order total, with or without tax, discount or postage.
This method operates on the order currently in the user's session, and should not be used to get the total amount of an order already stored in the database. For such orders, use Order::getTotalAmount() method.