Joomla_Module

+------------------------------------------------------------+ | apnscp | +------------------------------------------------------------+ | Copyright (c) Apis Networks | +------------------------------------------------------------+ | Licensed under Artistic License 2.0 | +------------------------------------------------------------+ | Author: Matt Saladna (msaladna@apisnetworks.com) | +------------------------------------------------------------+
extends Module\Support\Webapps
Methods Summary
public
# __construct( )
void __construct(void)

ignore


Overrides

public
# install( string $hostname , string $path = '', array $opts = array ( ) )
Install Joomla! into a pre-existing location
protected
# getInternalName( )
Get referred name Referred to as Joomla!, but internally let's track as "joomla"

Overrides

public
# change_admin( string $hostname , string $path = '', array $fields )
Change Joomla admin credentials common fields include: username, password, name, email
public
# get_admin( string $hostname , string $path = '' )
Get the primary admin for a Joomla instance
public
# db_config( string $hostname , string $path = '' )
Get database configuration for a blog
public
# fortify( string $hostname , string $path = '', string $mode = 'max' )
Restrict write-access by the app

Overrides

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
# plugin_status( string $hostname , string $path = '', string $plugin = NULL )
public
# disable_all_plugins( string $hostname , string $path = '' )
Recovery mode to disable all plugins
public
# uninstall( string $hostname , string $path = '', string $delete = 'all' )
Uninstall Joomla from a location

Overrides

public
# is_current( string $version = NULL, string $branchcomp = NULL )
Check if version is latest or get latest version

Overrides

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 Joomla! to latest version
public
# get_version( string $hostname , string $path = '' )
Get installed version
public
# valid( string $hostname , string $path = '' )
Location is a valid Joomla install
protected
# update_real( string $docroot , string $version = NULL )
public
protected
# _getVersions( )
Get all current major versions
public
# get_plugin_info( $plugin , $ver = NULL )
public
# update_plugins( string $hostname , string $path = '', array $plugins = array ( ) )
Update Joomla! plugins
public
# update_themes( string $hostname , string $path = '', array $themes = array ( ) )
Update Joomla! themes
public
# theme_status( string $hostname , string $path = '', string $theme = NULL )
public
# install_theme( string $hostname , string $path = '', string $theme , string $version = NULL )
public
# has_fortification( string $mode = NULL )
Web application supports fortification

Overrides

public
# _housekeeping( )
Install joomlatools if necessary
public
# next_version( string $version , string $maximalbranch = '99999999.99999999.99999999' )
Methods inherited from Module\Support\Webapps
__construct(), getAppName(), blacklisted(), knownApps(), fortify(), getAppRoot(), valid(), getInternalName(), getDocrootUser(), _mapFiles(), buildFileMapList(), getACLFiles(), setOptions(), getOptions(), failed(), getVersionLock(), has_fortification(), unfortify(), uninstall(), getDocumentRoot(), normalizeDocumentRoot(), map(), getModule(), remapPublic(), movePrimaryDocumentRoot(), unsquash(), next_version(), is_current(), _cron(), configureSsl(), theme_status(), install_theme(), uninstall_theme(), getApnscpFunctionInterceptorFromDocroot(), hasMemoryAllowance(), hasStorageAllowance(), checkEmail(), prepareSquash(), checkVersion(), checkDocroot(), kill(), _suggestDB(), _suggestUser(), suggestPassword(), setupDatabase(), getLatestVersion(), fixRewriteBase(), removeInvalidDirectives(), download(), setInfo(), _getWebappExtraStorageDirectory()
Methods inherited from Module\Skeleton\Standard
__construct(), setUserParameters(), autoloadModule(), __wakeup(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), _resetModule(), cleanUserParameters(), query()
Constants Summary
public string APP_NAME
# 'Joomla!'
public string JOOMLA_CLI
# '/usr/share/pear/joomlatools.phar'
public string UPDATE_URI
# 'https://github.com/joomla/joomla-cms/releases/download/%version%/Joomla_%version%-Stable-Update_Package.zip'
public string DEFAULT_FORTIFY_MODE
# 'max'
public string JOOMLA_CLI_VERSION
# '1.4.11-2'
public string JOOMLA_MODULE_XML
# 'http://update.joomla.org/core/extensions/%extension%.xml'
public string DEFAULT_VERSION_LOCK
# 'major'
public string JOOMLA_MIRROR
# 'http://mirror.apisnetworks.com/joomla'
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 => 'cache', 1 => 'tmp', 2 => 'administrator', 3 => 'logs', 4 => 'media', 5 => 'images', 6 => 'plugins', 7 => 'log', ), 'max' => array ( 0 => 'cache', 1 => 'tmp', 2 => 'administrator/cache', 3 => 'logs', 4 => 'log', ), )
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