Function __global->install_addon

Definitions

sources/addons2.php

  • Install an addon.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$file string No No required parameter N/A N/A Name of the addon TAR file
$files ?array No No Null N/A N/A The files to install (null: all)
$do_files boolean No No True N/A N/A Do file part
$do_db boolean No No True N/A N/A Do DB part
$clear_caches boolean No No True N/A N/A Whether to clear caches

Preview

Code (PHP)

/**
 * Install an addon.
 *
 * @param  string $file Name of the addon TAR file
 * @param  ?array $files The files to install (null: all)
 * @param  boolean $do_files Do file part
 * @param  boolean $do_db Do DB part
 * @param  boolean $clear_caches Whether to clear caches
 */

function install_addon(string $file, ?array $files = null, bool $do_files = true, bool $do_db = true, bool $clear_caches = true)