Webapp

Interface Webapp

Known implementers

Module\Support\Webapps , Webapp_Module

Methods Summary
public
# install( string $hostname , string $path = '', array $opts = array ( ) )
Install application
public
# plugin_status( string $hostname , string $path = '', string $plugin = NULL )
Get plugin status
public
# install_plugin( string $hostname , string $path , string $plugin , string $version = '' )
Install and activate plugin
public
# uninstall_plugin( string $hostname , string $path , string $plugin , bool $force = false )
Uninstall a plugin
public
# disable_all_plugins( string $hostname , string $path = '' )
Recovery mode to disable all plugins
public
# install_theme( string $hostname , string $path , string $theme , string $version = NULL )
Install a theme
public
# theme_status( string $hostname , string $path = '', string $theme = NULL )
Get plugin status
public
# uninstall( string $hostname , string $path = '', string $delete = 'all' )
Uninstall WP from a location
public
# db_config( string $hostname , string $path = '' )
Get database configuration for application
public
# is_current( string $version = NULL, string $branchcomp = NULL )
Check if version is latest or get latest version
public
# get_versions( )
Get all available versions sorted in ascending semantic version
public
# change_admin( string $hostname , string $path , array $fields )
Change admin credentials
public
# get_admin( string $hostname , string $path = '' )
Get the primary admin for a WP instance
public
# get_version( string $hostname , string $path = '' )
Get installed version
public
# next_version( string $version , string $maximalbranch = '99999999.99999999.99999999' )
Calculate next version in hierarchy
public
# valid( string $hostname , string $path = '' )
Location is a valid webapp install
public
# update_all( string $hostname , string $path = '', string $version = NULL )
Update core, plugins, and themes atomically
public
# update( string $hostname , string $path = '', string $version = NULL )
Update WordPress to latest version
public
# update_plugins( string $hostname , string $path = '', array $plugins = array ( ) )
Update WordPress plugins
public
# update_themes( string $hostname , string $path = '', array $themes = array ( ) )
Update themes
public
# uninstall_theme( string $hostname , string $path , string $theme , bool $force = false )
Remove a theme
public
# has_fortification( string $hostname , string $path = '', string $mode = NULL )
Web application supports fortification
public
# fortification_modes( string $hostname , string $path = '' )
Supported Fortification modes
public
# fortify( string $hostname , string $path = '', string $mode = 'max', array $args = array ( ) )
Restrict write-access by the app
public
# reconfigure( string $hostname , string $path , string|array $param , mixed $value = NULL )
public
# reconfigurables( string $hostname , string $path = '' )
List of reconfigurable parameters
public
# get_reconfigurable( string $hostname , string $path , string|string[] $setting )
Get reconfigurable value
public
# snapshot( string $hostname , string $path = '', string $comment = 'snapshot' )
Snapshot web application
public
# rollback( string $hostname , string $path = '', string $commit = NULL )
Rollback specified snapshot