Function __global->upgrade_addon_soft

Definitions

sources/addons2.php

  • Upgrade the specified addon.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$addon_name ID_TEXT No No required parameter N/A N/A The addon name

Returns

  • 1=Upgrade, 0=No upgrade needed, -1=Not compatible with this software version, -2=Not installed
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Upgrade the specified addon.
 *
 * @param  ID_TEXT $addon_name The addon name
 * @return integer 1=Upgrade, 0=No upgrade needed, -1=Not compatible with this software version, -2=Not installed
 */

function upgrade_addon_soft(string $addon_name) : int