- Class name: ModuleGridEngineCore
- This is an abstract class
- Parent class: Module
- Source: classes/module/ModuleGridEngine.php line 27
- $_type
- $_INSTANCE
- $_confirmations
- $_errors
- $_generate_config_xml_mode
- $_lang
- $_path
- $active
- $author
- $cache_permissions
- $classInModule
- $context
- $database_version
- $dependencies
- $description
- $displayName
- $exceptionsCache
- $id
- $identifier
- $l_cache
- $limited_countries
- $local_path
- $modules_cache
- $name
- $need_instance
- $ps_versions_compliancy
- $registered_version
- $smarty
- $tab
- $table
- $version
- $warning
- __construct
- _clearCache
- _generateConfigXml
- _getApplicableTemplateDir
- _isTemplateOverloaded
- _isTemplateOverloadedStatic
- addOverride
- adminDisplayInformation
- adminDisplayWarning
- cleanPositions
- configXmlStringFormat
- disable
- disableByName
- display
- displayConfirmation
- displayError
- displayFlags
- editExceptions
- enable
- enableByName
- findTranslation
- getAuthorizedModules
- getConfirmations
- getErrors
- getExceptions
- getGridEngines
- getInstanceById
- getInstanceByName
- getLocalPath
- getModuleIdByName
- getModuleName
- getModuleNameFromClass
- getModulesDirOnDisk
- getModulesInstalled
- getModulesOnDisk
- getNonNativeModuleList
- getPathUri
- getPaymentModules
- getPermission
- getPermissionStatic
- getPosition
- getTemplatePath
- getUpgradeStatus
- hookExec
- hookExecPayment
- initUpgradeModule
- install
- installOverrides
- isCached
- isEnabled
- isHookableOn
- isInstalled
- isRegisteredInHook
- l
- loadUpgradeVersionList
- needUpgrade
- preCall
- registerExceptions
- registerHook
- removeOverride
- render
- runUpgradeModule
- setLimit
- setSize
- setTitle
- setTotalCount
- setUpgradeMessage
- setValues
- uninstall
- uninstallOverrides
- unregisterExceptions
- unregisterHook
- updatePosition
- upgradeModuleVersion
protected mixed $_type
- Visibility: protected
- Source: classes/module/ModuleGridEngine.php line 29.
protected \protected $_INSTANCE = array()
- Visibility: protected
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 105.
protected \protected $_confirmations = array()
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 93.
protected \protected $_errors = array()
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 90.
protected \protected $_generate_config_xml_mode = false
- Visibility: protected
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 108.
protected array $_lang = array()
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 79.
protected string $_path = null
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 82.
public boolean $active = false
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 67.
public string $author
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 58.
protected \protected $cache_permissions = array()
- Visibility: protected
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 114.
public array $classInModule = array()
- Visibility: public
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 76.
protected \Context $context
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 117.
public mixed $database_version
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 34.
public array $dependencies = array()
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 46.
public string $description
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 55.
public string $displayName
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 52.
protected mixed $exceptionsCache = null
- Visibility: protected
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 1484.
public integer $id = null
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 30.
protected \protected $identifier = 'id_module'
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 99.
protected \protected $l_cache = array()
- Visibility: protected
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 111.
public array $limited_countries = array()
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 73.
protected string $local_path = null
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 87.
protected \protected $modules_cache
- Visibility: protected
- This property is static.
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 102.
public string $name
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 49.
public integer $need_instance = 1
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 61.
public array $ps_versions_compliancy = array('min' => '1.4', 'max' => '1.6')
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 43.
public string $registered_version
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 40.
protected \Smarty_Data $smarty
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 120.
public string $tab = null
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 64.
protected \protected $table = 'module'
- Visibility: protected
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 96.
public float $version
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 33.
public string $warning
- Visibility: public
- This property is defined by ModuleCore.
- Source: classes/module/Module.php line 70.
mixed ModuleGridEngineCore::__construct($type)
- Visibility: public
- Source: classes/module/ModuleGridEngine.php line 31
- $type mixed
mixed ModuleCore::_clearCache($template, $cache_id, $compile_id)
- Visibility: protected
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1636
- $template mixed
- $cache_id mixed
- $compile_id mixed
mixed ModuleCore::_generateConfigXml()
- Visibility: protected
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1643
mixed ModuleCore::_getApplicableTemplateDir($template)
- Visibility: protected
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1624
- $template mixed
mixed ModuleCore::_isTemplateOverloaded($template)
- Visibility: protected
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1576
- $template mixed
mixed ModuleCore::_isTemplateOverloadedStatic($module_name, $template)
- Visibility: protected
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1565
- $module_name mixed
- $template mixed
boolean ModuleCore::addOverride(string $classname)
Add all methods in a module override to the override class
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1877
- $classname string
mixed ModuleCore::adminDisplayInformation(string $msg)
add a info message to display at the top of the admin page
- Visibility: protected
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1823
- $msg string
mixed ModuleCore::adminDisplayWarning(string $msg)
add a warning message to display at the top of the admin page
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1811
- $msg string
mixed ModuleCore::cleanPositions($id_hook, $shop_list)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1434
- $id_hook mixed
- $shop_list mixed
mixed ModuleCore::configXmlStringFormat($string)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 898
- $string mixed
mixed ModuleCore::disable(boolean $forceAll)
Desactivate current module.
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 600
- $forceAll boolean - If true, disable module for all shop
true ModuleCore::disableByName(array|string $name)
This function disable module $name. If an $name is an array, this will disable all of them
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 582
- $name array|string
mixed ModuleCore::display($file, $template, $cacheId, $compileId)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1581
- $file mixed
- $template mixed
- $cacheId mixed
- $compileId mixed
mixed ModuleCore::displayConfirmation($string)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1469
- $string mixed
mixed ModuleCore::displayError($error)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1459
- $error mixed
mixed ModuleCore::displayFlags(array $languages, integer $default_language, string $ids, string $id, boolean $return, boolean $use_vars_instead_of_ids)
Display flags in forms for translations
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 617
- $languages array - All languages available
- $default_language integer - Default language id
- $ids string - Multilingual div ids in form
- $id string - Current div id]
- $return boolean - define the return way : false for a display, true for a return
- $use_vars_instead_of_ids boolean - use an js vars instead of ids seperate by "¤"
boolean ModuleCore::editExceptions($id_hook, array $excepts)
Edit exceptions for module->Hook
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 795
- $id_hook mixed
- $excepts array - List of shopID and file name
mixed ModuleCore::enable(boolean $forceAll)
Activate current module.
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 549
- $forceAll boolean - If true, enable module for all shop
true ModuleCore::enableByName(array|string $name)
This function enable module $name. If an $name is an array, this will enable all of them
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 531
- $name array|string
mixed ModuleCore::findTranslation($name, $string, $source)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1354
- $name mixed
- $string mixed
- $source mixed
mixed ModuleCore::getAuthorizedModules($group_id)
Get Unauthorized modules for a client group
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1720
- $group_id mixed
array ModuleCore::getConfirmations()
Get module messages confirmation
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1755
array ModuleCore::getErrors()
Get module errors
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1744
mixed ModuleCore::getExceptions($hookID, $dispatch)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1485
- $hookID mixed
- $dispatch mixed
mixed ModuleGridEngineCore::getGridEngines()
- Visibility: public
- This method is static.
- Source: classes/module/ModuleGridEngine.php line 43
\Module ModuleCore::getInstanceById(integer $id_module)
Return an instance of the specified module
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 879
- $id_module integer - Module ID
\Module ModuleCore::getInstanceByName(string $module_name)
Return an instance of the specified module
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 855
- $module_name string - Module name
string ModuleCore::getLocalPath()
Get local path for module
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1766
integer ModuleCore::getModuleIdByName($name)
Get id module by name
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1733
- $name mixed
mixed ModuleCore::getModuleName($module)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 904
- $module mixed
boolean|string ModuleCore::getModuleNameFromClass(mixed $currentClass)
This function is used to determine the module name of an AdminTab which belongs to a module, in order to keep translation related to a module in its directory (instead of $_LANGADM)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 817
- $currentClass mixed - the
array ModuleCore::getModulesDirOnDisk()
Return modules directory list
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1218
array ModuleCore::getModulesInstalled(integer $position)
Return installed modules
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1265
- $position integer - Take only positionnables modules
array ModuleCore::getModulesOnDisk(boolean $useConfig, $loggedOnAddons, $id_employee)
Return available modules
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 939
- $useConfig boolean - in order to use config.xml file in module dir
- $loggedOnAddons mixed
- $id_employee mixed
array ModuleCore::getNonNativeModuleList()
Return non native module
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1241
string ModuleCore::getPathUri()
Get uri path for module
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1777
array ModuleCore::getPaymentModules()
Returns the list of the payment module associated to the current customer
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1306
boolean ModuleCore::getPermission(array $variable, object $employee)
Check employee permission for module
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1677
- $variable array - (action)
- $employee object
boolean ModuleCore::getPermissionStatic(integer $id_module, array $variable, object $employee)
Check employee permission for module (static method)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1689
- $id_module integer
- $variable array - (action)
- $employee object
mixed ModuleCore::getPosition($id_hook)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1788
- $id_hook mixed
string ModuleCore::getTemplatePath(string $template)
Get realpath of a template of current module (check if template is overriden too)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1611
- $template string
boolean ModuleCore::getUpgradeStatus($module_name)
Return the status of the upgraded module
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 470
- $module_name mixed
string ModuleCore::hookExec(string $hook_name, array $hookArgs, $id_module)
Execute modules for specified hook
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1283
- $hook_name string - Hook Name
- $hookArgs array - Parameters for the functions
- $id_module mixed
mixed ModuleCore::hookExecPayment()
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1289
boolean ModuleCore::initUpgradeModule($module)
Init the upgrade module
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 306
- $module mixed
mixed ModuleGridEngineCore::install()
- Visibility: public
- Source: classes/module/ModuleGridEngine.php line 36
boolean ModuleCore::installOverrides()
Install overrides files for the module
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1835
mixed ModuleCore::isCached($template, $cacheId, $compileId)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1629
- $template mixed
- $cacheId mixed
- $compileId mixed
mixed ModuleCore::isEnabled($module_name)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1537
- $module_name mixed
boolean ModuleCore::isHookableOn(string $hook_name)
Check if the module is transplantable on the hook in parameter
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1665
- $hook_name string
mixed ModuleCore::isInstalled($module_name)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1527
- $module_name mixed
mixed ModuleCore::isRegisteredInHook($hook)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1550
- $hook mixed
string ModuleCore::l(string $string, boolean|string $specific, $id_lang)
Get translation for a given module text
Note: $specific parameter is mandatory for library files. Otherwise, translation key will not match for Module library when module is loaded with eval() Module::getModulesOnDisk()
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1370
- $string string - String to translate
- $specific boolean|string - filename to use in translation key
- $id_lang mixed
boolean ModuleCore::loadUpgradeVersionList($module_name, $module_version, $registered_version)
Load the available list of upgrade of a specified module with an associated version
- Visibility: protected
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 420
- $module_name mixed
- $module_version mixed
- $registered_version mixed
boolean ModuleCore::needUpgrade($module)
Check if a module need to be upgraded.
This method modify the module_cache adding an upgrade list file
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 397
- $module mixed
mixed ModuleCore::preCall($module_name)
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1295
- $module_name mixed
boolean ModuleCore::registerExceptions(integer $id_hook, array $excepts, array $shop_list)
Add exceptions for module->Hook
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 761
- $id_hook integer - Hook id
- $excepts array - List of file name
- $shop_list array - List of shop
boolean ModuleCore::registerHook(string $hook_name, array $shop_list)
Connect module to a hook
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 647
- $hook_name string - Hook name
- $shop_list array - List of shop linked to the hook (if null, link hook to all shops)
boolean ModuleCore::removeOverride(string $classname)
Remove all methods in a module override from the override class
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1931
- $classname string
mixed ModuleGridEngineCore::render()
- Visibility: public
- This method is abstract.
- Source: classes/module/ModuleGridEngine.php line 70
array ModuleCore::runUpgradeModule()
Run the upgrade for a given module name and version
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 330
mixed ModuleGridEngineCore::setLimit($start, $limit)
- Visibility: public
- This method is abstract.
- Source: classes/module/ModuleGridEngine.php line 69
- $start mixed
- $limit mixed
mixed ModuleGridEngineCore::setSize($width, $height)
- Visibility: public
- This method is abstract.
- Source: classes/module/ModuleGridEngine.php line 67
- $width mixed
- $height mixed
mixed ModuleGridEngineCore::setTitle($title)
- Visibility: public
- This method is abstract.
- Source: classes/module/ModuleGridEngine.php line 66
- $title mixed
mixed ModuleGridEngineCore::setTotalCount($totalCount)
- Visibility: public
- This method is abstract.
- Source: classes/module/ModuleGridEngine.php line 68
- $totalCount mixed
mixed ModuleCore::setUpgradeMessage($upgrade_detail)
Set errors, warning or success message of a module upgrade
- Visibility: protected
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 272
- $upgrade_detail mixed
mixed ModuleGridEngineCore::setValues($values)
- Visibility: public
- This method is abstract.
- Source: classes/module/ModuleGridEngine.php line 65
- $values mixed
boolean ModuleCore::uninstall()
Delete module from datable
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 481
boolean ModuleCore::uninstallOverrides()
Uninstall overrides files for the module
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1856
boolean ModuleCore::unregisterExceptions($hook_id, array $shop_list)
Unregister exceptions linked to module
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 745
- $hook_id mixed
- $shop_list array - List of shop
boolean ModuleCore::unregisterHook($hook_id, array $shop_list)
Unregister module from hook
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 715
- $hook_id mixed
- $shop_list array - List of shop
mixed ModuleCore::updatePosition($id_hook, $way, $position)
- Visibility: public
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 1385
- $id_hook mixed
- $way mixed
- $position mixed
boolean ModuleCore::upgradeModuleVersion($name, $version)
Upgrade the registered version to a new one
- Visibility: public
- This method is static.
- This method is defined by ModuleCore.
- Source: classes/module/Module.php line 380
- $name mixed
- $version mixed