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 |
---|
string
Filename to create in exports/addons directory (should end in .tar)
array
List of files to include
string
Addon name
string
Addon incompatibilities (comma-separated)
string
Addon dependencies (comma-separated)
string
Addon author
string
Addon organisation
string
Addon version
string
Addon category
string
Addon copyright attribution
string
Addon licence
string
Addon description
\PATH
Directory to save to
find_addon_dependencies_on(string $addon) : array
package | core_addon_management |
---|
string
The name of the addon
array
List of dependenciesfind_addon_effective_mtime(string $addon_name) : \?TIME
package | core_addon_management |
---|
string
The name of the addon
\?TIME
Modification 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_TEXT
Addon name
boolean
Whether to use a default icon if not found
\?PATH
Path to tar file (null: don't look inside a TAR / it's installed already)
\?string
Theme 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 |
---|
boolean
Whether to include addons that are installed already
array
Maps of maps describing the available addons (filename => details)find_installed_addons(boolean $just_non_bundled = false
) : array
package | core_addon_management |
---|
boolean
Whether to only return details on on-bundled addons
array
Map 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_TEXT
Feature name
boolean
Whether it isinform_about_addon_install(string $file, \?array $also_uninstalling= null
, \?array $also_installing= null
, boolean $always_return= false
) : array
package | core_addon_management |
---|
string
Filename of the addon TAR file
\?array
List of addons that we're currently uninstalling (so dependencies from these are irrelevant). (null: none)
\?array
List of addons that we're currently installing (so dependencies to these are irrelevant). (null: none)
boolean
Whether to make sure we always return, rather than possibly bombing out with a dependency management UI
array
Triple: 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 |
---|
string
Name of the addon
\?array
List of addons that we're currently uninstalling (so dependencies from these are irrelevant). (null: none)
\?array
Addon details. (null: load in function)
boolean
Whether to make sure we always return, rather than possibly bombing out with a dependency management UI
array
Pair: warnings, filesinstall_addon(string $file, \?array $files = null
)
package | core_addon_management |
---|
string
Name of the addon TAR file
\?array
The 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 |
---|
string
The name of the addon
boolean
Whether to search for dependencies on this
\?array
Database row (null: lookup via a new query)
\?array
.ini-format info (needs processing) (null: unknown / N/A)
array
The map of detailsreinstall_addon_soft(\ID_TEXT $addon, \?array $ini_info = null
)
package | core_addon_management |
---|
\ID_TEXT
The 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_TEXT
The addon name
integer
0=No upgrade. -2=Not installed, 1=Upgrade