Function __global->find_available_addons
Definitions
sources/addons2.php
- Find all the available addons located in imports/addons.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $installed_too | boolean | No | No | True | N/A | N/A | Whether to include addons that are installed already |
| $hash_and_mtime | boolean | No | No | True | N/A | N/A | Whether to generate a file hash and include it along with the file mtime in the info |
| $already_known | array | No | No | [] | N/A | N/A | Map of addons we already have details for, performance optimisation |
| $get_info | boolean | No | No | True | N/A | N/A | Whether to get full details about each addon |
| $even_incompatible | boolean | No | No | False | N/A | N/A | Whether to also return available addons that are not compatible with this version of the software |
Returns
- Maps of maps describing the available addons (filename => details)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find all the available addons located in imports/addons.
*
* @param boolean $installed_too Whether to include addons that are installed already
* @param boolean $hash_and_mtime Whether to generate a file hash and include it along with the file mtime in the info
* @param array $already_known Map of addons we already have details for, performance optimisation
* @param boolean $get_info Whether to get full details about each addon
* @param boolean $even_incompatible Whether to also return available addons that are not compatible with this version of the software
* @return array Maps of maps describing the available addons (filename => details)
*/
function find_available_addons(bool $installed_too = true, bool $hash_and_mtime = true, array $already_known = [], bool $get_info = true, bool $even_incompatible = false) : array
* Find all the available addons located in imports/addons.
*
* @param boolean $installed_too Whether to include addons that are installed already
* @param boolean $hash_and_mtime Whether to generate a file hash and include it along with the file mtime in the info
* @param array $already_known Map of addons we already have details for, performance optimisation
* @param boolean $get_info Whether to get full details about each addon
* @param boolean $even_incompatible Whether to also return available addons that are not compatible with this version of the software
* @return array Maps of maps describing the available addons (filename => details)
*/
function find_available_addons(bool $installed_too = true, bool $hash_and_mtime = true, array $already_known = [], bool $get_info = true, bool $even_incompatible = false) : array

