Modules

Modules are a collection of different purpose plug-ins that provides extra functionality to the platform. Some of the module types are Background Job Modules, Customer Modules, Shipping Modules, Payment Modules, Order Modules, Order Total Modules.

Entity Object

$module = new ent_module($module_id);
$module->data['settings']['status'] = 1;
$module->save();

Reference Model

Modules doesn't have a reference object. Instead, values from the entity will be returned.

echo reference::module($module_id)->settings['status'];

Database Query

$module = database::query(
  "select * from ". DB_TABLE_PREFIX ."modules
  where module_id = '". database::input($module_id) ."'
  limit 1;"
)->fetch();

Revisions

Recently Edited Articles
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.