Methods |
public
|
__construct()
void __construct(void)
|
#
|
public
|
install(string $hostname, string $path = '', array $opts = []): bool
Install WordPress into a pre-existing location
Install WordPress into a pre-existing location
Parameters
$hostname |
domain or subdomain to install WordPress
|
$path |
optional path under hostname
|
$opts |
additional install options
|
|
#
|
public
|
get_version(string $hostname, string $path = ''): null|string
Get installed version
|
#
|
public
|
valid(string $hostname, string $path = ''): bool
Location is a valid WP install
Location is a valid WP install
Parameters
|
#
|
public
|
install_plugin(string $hostname, string $path, string $plugin, string $version = ''): 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
|
enable_plugin(string $hostname, ?string $path, $plugin)
|
#
|
public
|
uninstall_plugin(string $hostname, string $path, string $plugin, bool|string $force = false): bool
Uninstall a plugin
Parameters
$plugin |
plugin name
|
$force |
delete even if plugin activated
|
|
#
|
public
|
plugin_active(string $hostname, ?string $path, $plugin)
|
#
|
public
|
plugin_status(string $hostname, string $path = '', string $plugin = null): ?array
|
#
|
public
|
disable_plugin($hostname, ?string $path, $plugin)
|
#
|
public
|
disable_all_plugins(string $hostname, string $path = ''): bool
Recovery mode to disable all plugins
Recovery mode to disable all plugins
Parameters
$hostname |
subdomain or domain of WP
|
$path |
optional path
|
|
#
|
public
|
list_all_plugins($hostname, $path = '', $status = '')
|
#
|
public
|
db_config(string $hostname, string $path = ''): array|bool
Get database configuration for a blog
Get database configuration for a blog
Parameters
$hostname |
domain or subdomain of Drupal
|
$path |
optional path
|
|
#
|
public
|
change_admin(string $hostname, string $path, array $fields): bool
Change WP admin credentials
Change WP admin credentials
$fields is a hash whose indices match password
Parameters
$fields |
password only field supported for now
|
|
#
|
public
|
get_admin(string $hostname, string $path = ''): null|string
Get the primary admin for a Drupal instance
Get the primary admin for a Drupal 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 Drupal to latest version
Update Drupal to latest version
Parameters
$hostname |
domain or subdomain under which WP is installed
|
$path |
optional subdirectory
|
|
#
|
public
|
isLocked(string $docroot): bool
|
#
|
public
|
update_plugins(string $hostname, string $path = '', array $plugins = []): bool
Update Drupal plugins and themes
Update Drupal plugins and themes
Parameters
$hostname |
domain or subdomain
|
$path |
optional path within host
|
|
#
|
public
|
_housekeeping()
|
#
|
public
|
get_versions(): array
Get all available Drupal versions
Get all available Drupal versions
|
#
|
public
|
update_themes(string $hostname, string $path = '', array $themes = []): bool
Update WordPress themes
Parameters
$hostname |
subdomain or domain
|
$path |
optional path under hostname
|
|
#
|