Methods |
public
|
__construct()
|
#
|
public
|
install(string $hostname, string $path = '', array $opts = []): bool
|
#
|
public
|
uninstall(string $hostname, string $path = '', $delete = 'all'): bool
|
#
|
public
|
plugin_status(string $hostname, string $path = '', string $plugin = null)
|
#
|
public
|
install_plugin(string $hostname, string $path, string $plugin, string $version = ''): bool
|
#
|
public
|
uninstall_plugin(string $hostname, string $path, string $plugin, bool $force = false): bool
|
#
|
public
|
disable_all_plugins(string $hostname, string $path = ''): bool
|
#
|
public
|
db_config(string $hostname, string $path = '')
|
#
|
public
|
get_versions(): array
|
#
|
public
|
change_admin(string $hostname, string $path, array $fields): bool
|
#
|
public
|
get_admin(string $hostname, string $path = ''): ?string
|
#
|
public
|
get_version(string $hostname, string $path = ''): ?string
|
#
|
public
|
update_all(string $hostname, string $path = '', string $version = null): bool
|
#
|
public
|
update(string $hostname, string $path = '', string $version = null): bool
|
#
|
public
|
update_plugins(string $hostname, string $path = '', array $plugins = []): bool
|
#
|
public
|
update_themes(string $hostname, string $path = '', array $themes = []): bool
|
#
|
public
|
fortify(string $hostname, string $path = '', string $mode = 'max', $args = []): bool
|
#
|
public
|
unfortify(string $hostname, string $path = ''): bool
|
#
|
public
|
has_fortification(string $hostname, string $path = '', string $mode = null): bool
|
#
|
public
|
fortification_modes(string $hostname, string $path = ''): array
|
#
|
public
|
valid(string $hostname, string $path = ''): bool
|
#
|
public
|
list(): array
Report installed applications
Report installed applications
|
#
|
public
|
available(): array
Report available app names
Report available app names
|
#
|
public
|
discover(string $hostname, string $path = ''): string|null
Discover available app
|
#
|
public
|
detect(string $hostname, string $path = ''): string|null
Alias to @see Webapp_Module::discover()
Alias to @see Webapp_Module::discover()
|
#
|
public
|
manifest_sign(string $hostname, string $path = ''): bool
Sign ad hoc manifest
|
#
|
public
|
manifest_signed(string $hostname, string $path = ''): bool
Ad hoc manifest signed
|
#
|
public
|
manifest_create(string $hostname, string $path = ''): bool
Create new manifest
|
#
|
public
static
|
blacklisted(string $app): bool
App is blacklisted
|
#
|
public
|
reconfigure(string $hostname, string $path, $param, $value = null): bool
|
#
|
public
|
reconfigurables(string $hostname, string $path = ''): array
|
#
|
public
|
prune(): void
Remove orphaned webapp metadata
Remove orphaned webapp metadata
|
#
|
public
|
get_reconfigurable(string $hostname, string $path, $setting)
|
#
|
public
|
snapshot(string $hostname, string $path = '', string $comment = 'snapshot'): bool
|
#
|
public
|
rollback(string $hostname, string $path = '', string $commit = null): bool
|
#
|
public
|
get_meta(string $hostname, string $path = ''): array
Get web app metadata
|
#
|
public
|
set_meta(string $hostname, string $path, mixed $key, null $opt = null): bool
Replace meta in webapp
Replace meta in webapp
This method is unsafe. Only to be used if you know what you're doing.
Operates in a few modes. Key accepts dot notation.
- Set single ($key = "key", $opt = "val")
- Multiple values ($key = ["key" => "val"])
- Erase all values ($key = null)
Parameters
$key |
array key => values or single dot-notation key
|
$opt |
optional value in scalar mode
|
|
#
|
public
|
refresh_apps(): void
Reset Web App index
|
#
|
public
|
_housekeeping()
|
#
|
public
|
_edit()
|
#
|
public
|
_verify_conf(ConfigurationContext $ctx): bool
|
#
|
public
|
_create()
|
#
|
public
|
_delete()
|
#
|
public
|
_create_user(string $user)
|
#
|
public
|
_delete_user(string $user)
|
#
|
public
|
_edit_user(string $userold, string $usernew, array $oldpwd)
|
#
|