create_addon
find_addon_dependencies_on
find_addon_effective_mtime
find_addon_icon
find_available_addons
find_installed_addons
find_remote_addons
find_updated_addons
get_default_addon_details
has_feature
inform_about_addon_install
inform_about_addon_uninstall
install_addon
read_addon_info
reinstall_addon_soft
uninstall_addon
uninstall_addon_soft
upgrade_addon_soft
create_addon(string $file, array $files, string $addon, string $incompatibilities, string $dependencies, string $author, string $organisation, string $version, string $category, string $copyright_attribution, string $licence, string $description, \PATH $dir = 'exports/addons')
| package | core_addon_management |
|---|
stringFilename to create in exports/addons directory (should end in .tar)
arrayList of files to include
stringAddon name
stringAddon incompatibilities (comma-separated)
stringAddon dependencies (comma-separated)
stringAddon author
stringAddon organisation
stringAddon version
stringAddon category
stringAddon copyright attribution
stringAddon licence
stringAddon description
\PATHDirectory to save to
find_addon_dependencies_on(string $addon) : array
| package | core_addon_management |
|---|
stringThe name of the addon
arrayList of dependenciesfind_addon_effective_mtime(string $addon_name) : \?TIME
| package | core_addon_management |
|---|
stringThe name of the addon
\?TIMEModification time (null: could not find any files)find_addon_icon(\ID_TEXT $addon_name, boolean $pick_default= true, \?PATH $tar_path= null) : \?string
| package | core_addon_management |
|---|
\ID_TEXTAddon name
booleanWhether to use a default icon if not found
\?PATHPath to tar file (null: don't look inside a TAR / it's installed already)
\?stringTheme image URL (may be a "data:" URL rather than a normal URLPATH) (null: not found)find_available_addons(boolean $installed_too = true) : array
| package | core_addon_management |
|---|
booleanWhether to include addons that are installed already
arrayMaps of maps describing the available addons (filename => details)find_installed_addons(boolean $just_non_bundled = false) : array
| package | core_addon_management |
|---|
booleanWhether to only return details on on-bundled addons
arrayMap of maps describing the available addons (addon name => details)find_remote_addons() : array
find_updated_addons() : array
get_default_addon_details() : array
has_feature(\ID_TEXT $dependency) : boolean
| package | core_addon_management |
|---|
\ID_TEXTFeature name
booleanWhether it isinform_about_addon_install(string $file, \?array $also_uninstalling= null, \?array $also_installing= null, boolean $always_return= false) : array
| package | core_addon_management |
|---|
stringFilename of the addon TAR file
\?arrayList of addons that we're currently uninstalling (so dependencies from these are irrelevant). (null: none)
\?arrayList of addons that we're currently installing (so dependencies to these are irrelevant). (null: none)
booleanWhether to make sure we always return, rather than possibly bombing out with a dependency management UI
arrayTriple: warnings, files, addon info arrayinform_about_addon_uninstall(string $addon, \?array $also_uninstalling= null, \?array $addon_info= null, boolean $always_return= false) : array
| package | core_addon_management |
|---|
stringName of the addon
\?arrayList of addons that we're currently uninstalling (so dependencies from these are irrelevant). (null: none)
\?arrayAddon details. (null: load in function)
booleanWhether to make sure we always return, rather than possibly bombing out with a dependency management UI
arrayPair: warnings, filesinstall_addon(string $file, \?array $files = null)
| package | core_addon_management |
|---|
stringName of the addon TAR file
\?arrayThe files to install (null: all)
read_addon_info(string $addon, boolean $get_dependencies_on_this= false, \?array $row= null, \?array $ini_info= null) : array
| package | core_addon_management |
|---|
stringThe name of the addon
booleanWhether to search for dependencies on this
\?arrayDatabase row (null: lookup via a new query)
\?array.ini-format info (needs processing) (null: unknown / N/A)
arrayThe map of detailsreinstall_addon_soft(\ID_TEXT $addon, \?array $ini_info = null)
| package | core_addon_management |
|---|
\ID_TEXTThe addon name
\?array.ini-format info (needs processing) (null: unknown / N/A)
uninstall_addon(string $addon)
uninstall_addon_soft(\ID_TEXT $addon)
upgrade_addon_soft(\ID_TEXT $addon) : integer
| package | core_addon_management |
|---|
\ID_TEXTThe addon name
integer0=No upgrade. -2=Not installed, 1=Upgrade