File updater_php.lua
Get all infos regarding a module.
Functions
| fetch_module (name, substitute, kind, b) | Downloads the module. |
| fetch_modules_metadata (kind, b) | Get all infos regarding a module. |
Functions
- fetch_module (name, substitute, kind, b)
-
Downloads the module.
Parameters
- name: string the module name.
- substitute: boolean true to substitute it, that is putting hte new version somewhere that overrides the original one.
- kind: string official of contrib.
- b: browser the browser, a new one is created if nil.
Return value:
string "" if substitute and no errors in writing, nil, err if some error occurred, a huge string if not substitute and no errors. - fetch_modules_metadata (kind, b)
-
Get all infos regarding a module.
Parameters
- kind: string official of contrib.
- b: browser the browser, a new one is created if nil.
Return value:
table with the following fields: version require_version url local_path local_version can_update why_cannot_update should_update.