Methods |
public
|
__construct()
|
#
|
public
|
plugin_status(string $hostname, string $path = '', string $plugin = null)
|
#
|
public
|
uninstall_plugin(string $hostname, string $path, string $plugin, bool $force = false): bool
|
#
|
public
|
disable_all_plugins(string $hostname, string $path = ''): bool
|
#
|
public
|
next_version(string $version, string $maximalbranch = '99999999.99999999.99999999'): null|string
Get next Discourse version
Get next Discourse version
|
#
|
public
|
reconfigure(string $hostname, string $path, $param, $value = null): bool
|
#
|
public
|
reconfigurables(string $hostname, string $path = ''): array
|
#
|
public
|
get_configuration(string $hostname, string $path, string|array $fields): mixed
|
#
|
public
|
install(string $hostname, string $path = '', array $opts = []): bool
Install Discourse into a pre-existing location
Install Discourse into a pre-existing location
Parameters
$hostname |
domain or subdomain to install Laravel
|
$path |
optional path under hostname
|
$opts |
additional install options
|
|
#
|
public
|
get_version(string $hostname, string $path = ''): string
Get installed version
|
#
|
public
|
valid(string $hostname, string $path = ''): bool
Location is a valid Discourse install
Location is a valid Discourse install
Parameters
|
#
|
public
|
set_configuration(string $hostname, string $path, array $params = [])
|
#
|
public
|
build()
|
#
|
public
|
restart(string $hostname, string $path = ''): bool
|
#
|
public
|
install_plugin(string $hostname, string $path, string $plugin, string $version = 'stable'): bool
Install and activate plugin
Install and activate plugin
Parameters
$hostname |
domain or subdomain of wp install
|
$path |
optional path component of wp install
|
$plugin |
plugin name
|
$version |
optional plugin version
|
|
#
|
public
|
uninstall(string $hostname, string $path = '', string $delete = 'all'): bool
Get configuration from a webapp
Get configuration from a webapp
Parameters
$delete |
remove all files under docroot
|
|
#
|
public
|
is_current(null|string $version = null, string|null $branchcomp = null): bool
Check if version is latest or get latest version
Check if version is latest or get latest version
|
#
|
public
|
change_admin(string $hostname, string $path, array $fields): bool
Change Discourse admin credentials
Change Discourse admin credentials
Common fields include: password, email, username, name
|
#
|
public
|
get_admin(string $hostname, null|string $path = ''): string
Get the primary admin for a WP instance
Get the primary admin for a WP instance
Returns
admin or false on failure
|
#
|
public
|
update_all(string $hostname, string $path = '', string $version = null): bool
Update core, plugins, and themes atomically
Update core, plugins, and themes atomically
Parameters
$hostname |
subdomain or domain
|
$path |
optional path under hostname
|
|
#
|
public
|
update(string $hostname, string $path = '', string $version = null): bool
Update Discourse to latest version
Update Discourse to latest version
Parameters
$hostname |
domain or subdomain under which WP is installed
|
$path |
optional subdirectory
|
|
#
|
public
|
get_versions(): array
Get all available Discourse versions
Get all available Discourse versions
|
#
|
public
|
update_plugins(string $hostname, string $path = '', array $plugins = []): bool
Update plugins
Parameters
$hostname |
domain or subdomain
|
$path |
optional path within host
|
|
#
|
public
|
update_themes(string $hostname, string $path = '', array $themes = []): bool
Update Laravel themes
Parameters
$hostname |
subdomain or domain
|
$path |
optional path under hostname
|
|
#
|
public
|
has_fortification(string $hostname, string $path = '', string $mode = null): bool
|
#
|
public
|
fortification_modes(string $hostname, string $path = ''): array
|
#
|
public
|
fortify(string $hostname, string $path = '', string $mode = 'max', array $args = []): bool
Restrict write-access by the app
Restrict write-access by the app
|
#
|
public
|
_housekeeping(): bool
Laravel housekeeping
|
#
|
public
|
theme_status(string $hostname, string $path = '', string $theme = null)
|
#
|
public
|
install_theme(string $hostname, string $path, string $theme, string $version = null): bool
|
#
|
public
|
db_config(string $hostname, string $path = ''): bool|array
Get database configuration for Discourse
Get database configuration for Discourse
Parameters
$hostname |
domain or subdomain of wp blog
|
$path |
optional path
|
|
#
|