Magento_Module

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

ignore


Overrides

public
# install( string $hostname , string $path = '', array $opts = array ( ) )
Install Magento into a pre-existing location
public
# get_key( )
Get Magento key for use with Magento Connect
public
# get_version( string $hostname , string $path = '' )
Get installed version
protected
# getAppRoot( string $hostname , string $path = '' )
public
# valid( string $hostname , string $path = '' )
Location is a valid WP install
public
# install_plugin( string $hostname , string $path = '', string $plugin , string $version = 'stable' )
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
# uninstall( string $hostname , string $path = '', string $delete = 'all' )
Uninstall WP from a location

Overrides

public
# db_config( string $hostname , string $path = '' )
Get database configuration for a blog
public
# is_current( string $version = NULL, string $branchcomp = NULL )
Check if version is latest or get latest version

Overrides

public
# change_admin( string $hostname , string $path = '', array $fields )
Change Magento admin credentials $fields is a hash whose indices match password
public
# get_admin( string $hostname , string $path = '' )
Get the primary admin for a Magento instance
public
# has_fortification( string $mode = NULL )
Web application supports fortification

Overrides

public
# fortify( string $hostname , string $path = '', string $mode = 'max' )
public
# unfortify( string $hostname , string $path = '' )
Relax permissions to allow write-access

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 Magento to latest version
public
# update_plugins( string $hostname , string $path = '', array $plugins = array ( ) )
Update Magento plugins
public
# update_themes( string $hostname , string $path = '', array $themes = array ( ) )
Update Magento themes
public
public
# set_key( $publickey , $privatekey )
public
# _housekeeping( )
Install wp-cli if necessary
protected
# _getVersions( )
Get all current major versions
public
# plugin_status( string $hostname , string $path = '', string $plugin = NULL )
Get plugin status
public
# get_versions( )
Get all available versions
public
# next_version( string $version , string $maximalbranch = '99999999.99999999.99999999' )
public
# theme_status( string $hostname , string $path = '', string $theme = NULL )
public
# install_theme( string $hostname , string $path = '', string $theme , string $version = NULL )
Methods inherited from Module\Support\Webapps\Magento
disableSecureHttp(), useSecureHttp(), enableSecureHttp(), guessMajor(), fixSymlinkTraversal()
Methods inherited from Module\Support\Webapps
fortify(), getACLFiles(), failed(), getAppRoot(), getDocumentRoot(), valid(), getInternalName(), getVersionLock(), getDocrootUser(), getApnscpFunctionInterceptorFromDocroot(), _mapFiles(), buildFileMapList(), setOptions(), hasMemoryAllowance(), hasStorageAllowance(), movePrimaryDocumentRoot(), remapPublic(), has_fortification(), unfortify(), getOptions(), uninstall(), map(), getModule(), checkEmail(), prepareSquash(), checkVersion(), unsquash(), next_version(), is_current(), _cron(), checkDocroot(), kill(), _suggestDB(), _suggestUser(), suggestPassword(), setupDatabase(), getLatestVersion(), fixRewriteBase(), download(), setInfo(), _getWebappExtraStorageDirectory(), knownApps(), configureSsl(), theme_status(), install_theme(), uninstall_theme()
Methods inherited from Module\Skeleton\Standard
__construct(), __wakeup(), autoloadModule(), setUserParameters(), cleanUserParameters(), setSessionId(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), getServices(), getNewServices(), getActiveServices(), getConfig(), getServiceValue(), setConfigJournal(), setConfig(), query(), _resetModule()
Constants Summary
public string APP_NAME
# 'Magento'
public string MAGENTO_CLI
# '/usr/share/pear/n98-magerun.phar'
public string MAGENTO2_CLI
# '/usr/share/pear/n98-magerun2.phar'
public string MAGENTO_CLI_URL
# 'https://files.magerun.net/n98-magerun.phar'
public string MAGENTO2_CLI_URL
# 'https://files.magerun.net/n98-magerun2.phar'
public string VERSION_CHECK_URL
# 'http://mirror.apisnetworks.com/magento'
public string ADMIN_URL
# '/admin'
public string DEFAULT_VERSION_LOCK
# 'major'
Constants inherited from Module\Support\Webapps
APPLICATION_PREF_KEY , APP_NAME , DEFAULT_VERSION_LOCK
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
protected $_aclList
# array ( 'min' => array ( 0 => 'media', 1 => 'var', 2 => 'downloader', 3 => 'generated', 4 => 'pub/static', ), 'max' => array ( 0 => 'media/downloadable', 1 => 'downloader', 2 => 'var/cache', 3 => 'var/session', 4 => 'var/page_cache', 5 => 'var/log', 6 => 'generated/code', 7 => 'generated/metadata', 8 => 'pub/static', ), )
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, $pgsql, $mysql