Function __global->upgrade_addons
Definitions
sources/upgrade_db_upgrade.php
- Upgrade all addons, modules, and blocks.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $from_cms_version | float | No | No | required parameter | N/A | N/A | From which version of the software we are upgrading |
| &$offset | integer | Yes | No | required parameter | N/A | N/A | The offset of modules / blocks / addons, passed by reference and must be no lower than 2 |
Returns
- List of upgraded/installed modules/blocks (we only run one at a time)
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Upgrade all addons, modules, and blocks.
*
* @param float $from_cms_version From which version of the software we are upgrading
* @param integer $offset The offset of modules / blocks / addons, passed by reference and must be no lower than 2
* @return string List of upgraded/installed modules/blocks (we only run one at a time)
*/
function upgrade_addons(float $from_cms_version, int &$offset) : string
* Upgrade all addons, modules, and blocks.
*
* @param float $from_cms_version From which version of the software we are upgrading
* @param integer $offset The offset of modules / blocks / addons, passed by reference and must be no lower than 2
* @return string List of upgraded/installed modules/blocks (we only run one at a time)
*/
function upgrade_addons(float $from_cms_version, int &$offset) : string

