Methods Summary | ||
---|---|---|
public
|
||
protected
|
||
protected
|
#
generateNewConfiguration( $domain , $docroot , $dbcredentials , array $ftpcredentials = array ( ) )
|
|
public
|
||
public
|
||
public
|
||
protected
|
#
shareOwnershipSystemCheck( string $docroot )
Share ownership of a WordPress install allowing WP write-access in min fortification
|
|
protected
|
||
public
|
#
plugin_status( string $hostname , string $path = '', string $plugin = NULL )
Enumerate plugin states
|
|
protected
|
||
protected
|
||
protected
|
||
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
|
||
public
|
||
public
|
||
public
|
||
public
|
#
uninstall_theme( string $hostname , string $path = '', string $theme , bool $force = false )
Remove a Wordpress theme
Overrides |
|
public
|
||
public
|
||
public
|
||
public
|
#
change_admin( string $hostname , string $path = '', array $fields )
Change WP admin credentials
$fields is a hash whose indices match wp_update_user
common fields include: user_pass, user_login, and user_nicename
link |
|
public
|
||
public
|
#
update_all( string $hostname , string $path = '', string $version = NULL )
Update core, plugins, and themes atomically
|
|
public
|
#
update_themes( string $hostname , string $path = '', array $themes = array ( ) )
Update WordPress themes
|
|
protected
|
||
public
|
#
update_plugins( string $hostname , string $path = '', array $plugins = array ( ) )
Update WordPress plugins
|
|
public
|
||
public
|
#
is_current( string $version = NULL, string $branchcomp = NULL )
Check if version is latest or get latest version
Overrides |
|
public
|
#
theme_status( string $hostname , string $path = '', string $theme = NULL )
Get theme status
Sample response:
[
hestia => [
version => 1.1.50
next => 1.1.51
current => false
max => 1.1.66
]
]
Overrides |
|
protected
|
||
protected
|
||
public
|
#
install_theme( string $hostname , string $path = '', string $theme , string $version = NULL )
Overrides |
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
reconfigure( string $field , string $attribute , array $new , array $old = NULL )
Reconfigure a WordPress instance
|
|
public
|
||
protected
|
||
protected
|
||
protected
|
||
public
|
||
public
|
#
skip_asset( string $hostname , string $path = '', string $name , string $type )
Skip updating an asset
|
|
public
|
#
unskip_asset( string $hostname , string $path = '', string $name , string $type )
Permit updates of an asset
|
Methods inherited from Module\Skeleton\Standard |
---|
__construct() ,
setUserParameters() ,
autoloadModule() ,
__wakeup() ,
_invoke() ,
__debugInfo() ,
getExportedFunctions() ,
_reset() ,
_resetModule() ,
cleanUserParameters() ,
query()
|
Constants Summary | ||
---|---|---|
public
string
|
APP_NAME
|
#
'WordPress'
|
public
string
|
ASSET_SKIPLIST
|
#
'.wp-update-skip'
|
public
string
|
WP_CLI
|
#
'/usr/share/pear/wp-cli.phar'
|
public
string
|
WP_CLI_URL
|
#
'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar'
|
public
string
|
VERSION_CHECK_URL
|
#
'https://api.wordpress.org/core/version-check/1.7/'
|
public
string
|
PLUGIN_VERSION_CHECK_URL
|
#
'https://api.wordpress.org/plugins/info/1.0/%plugin%.json'
|
public
string
|
THEME_VERSION_CHECK_URL
|
#
'https://api.wordpress.org/themes/info/1.2/?action=theme_information&request[slug]=%theme%&request[fields][versions]=1'
|
public
string
|
DEFAULT_VERSION_LOCK
|
#
'none'
|
public
array
|
NON_UPDATEABLE_TYPES
|
#
array (
0 => 'dropin',
1 => 'must-use',
)
|
Constants inherited from Module\Support\Webapps |
---|
APPLICATION_PREF_KEY
,
APP_NAME
,
DEFAULT_VERSION_LOCK
,
BANNED_DIRECTIVES
|
Constants inherited from Module\Skeleton\Standard |
---|
DEPENDENCY_MAP
|
Properties Summary | ||
---|---|---|
protected
|
$_aclList
|
#
array (
'min' =>
array (
0 => 'wp-content',
1 => '.htaccess',
2 => 'wp-config.php',
),
'max' =>
array (
0 => 'wp-content/uploads',
1 => 'wp-content/cache',
2 => 'wp-content/wflogs',
3 => 'wp-content/updraft',
),
)
|
protected
array
|
$controlFiles
|
#
array (
0 => '/wp-admin/includes/file.php',
)
|
Properties inherited from Module\Support\Webapps |
---|
$exportedFunctions
|
Properties inherited from Module\Skeleton\Standard |
---|
$exportedFunctions ,
$username ,
$password ,
$domain ,
$user_id ,
$group_id ,
$permission_level ,
$session_id ,
$site ,
$site_id
|