Methods |
public
|
__construct()
void __construct(void)
|
#
|
public
|
install(string $hostname, string $path = '', array $opts = []): bool
Install Joomla! into a pre-existing location
Install Joomla! into a pre-existing location
Parameters
$hostname |
domain or subdomain to install Joomla!
|
$path |
optional path under hostname
|
$opts |
additional install options
|
|
#
|
public
|
change_admin(string $hostname, string $path, array $fields): bool
Change Joomla admin credentials
Change Joomla admin credentials
common fields include: username, password, name, email
|
#
|
public
|
get_admin(string $hostname, null|string $path = ''): string|null
Get the primary admin for a Joomla instance
Get the primary admin for a Joomla instance
Returns
admin or false on failure
|
#
|
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 joomla
|
$path |
optional path
|
|
#
|
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 joomla install
|
$path |
optional path component of joomla install
|
$plugin |
plugin name
|
$version |
optional plugin version
|
|
#
|
public
|
uninstall_plugin(string $hostname, string $path, string $plugin, bool $force = false): bool
Uninstall a plugin
Parameters
$plugin |
plugin name
|
$force |
delete even if plugin activated
|
|
#
|
public
|
plugin_status(string $hostname, string $path = '', string $plugin = null): array
|
#
|
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 Joomla
|
$path |
optional path
|
|
#
|
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 Joomla! to latest version
Update Joomla! to latest version
Parameters
$hostname |
domain or subdomain under which Joomla is installed
|
$path |
optional subdirectory
|
Throws
|
#
|
public
|
get_version(string $hostname, string $path = ''): string|null
Get installed version
|
#
|
public
|
valid(string $hostname, string $path = ''): bool
Location is a valid Joomla install
Location is a valid Joomla install
Parameters
|
#
|
public
|
get_versions(): array
|
#
|
public
|
get_plugin_info($plugin, $ver = null)
|
#
|
public
|
update_plugins(string $hostname, string $path = '', array $plugins = []): bool
Update Joomla! plugins
Parameters
$hostname |
domain or subdomain
|
$path |
optional path within host
|
|
#
|
public
|
update_themes(string $hostname, string $path = '', array $themes = []): bool
Update Joomla! themes
Parameters
$hostname |
subdomain or domain
|
$path |
optional path under hostname
|
|
#
|
public
|
_housekeeping(): bool
Install joomlatools if necessary
Install joomlatools if necessary
|
#
|