Webapps

extends Module\Skeleton\Standard implements Module\Support\Webapps\Contracts\Webapp uses NamespaceUtilitiesTrait

Known subclasses

Drupal_Module, Ghost_Module, Joomla_Module, Laravel_Module, Magento_Module, Module\Support\Webapps\Composer, Module\Support\Webapps\Magento, Wordpress_Module
Abstract
Open source code
Methods Summary
public
# fortify( string $hostname , string $path = '', string $mode = 'max' )
Restrict write-access by the app

Implementation of

protected
# getACLFiles( string $mode , string $approot )
Get ACL files
public
# failed( $docroot , $failedFlag = NULL )
protected
# getAppRoot( string $hostname , string $path = '' )
Convert hostname/path into application root following symlinks
protected
# getDocumentRoot( string $hostname , string $path = '' )
Convert hostname/path into account path
abstract public
# valid( string $hostname , string $path = '' )
protected
public
# getVersionLock( $docroot )
protected
# getDocrootUser( string $docroot )
Get non-system user docroot ownership
protected
# _mapFiles( array $files , string $docroot )
Create docroot map of files
protected
# buildFileMapList( string $f , string $docroot , string $prefix )
Build map of physical files from list
public
# setOptions( string $docroot , array $options )
protected
# movePrimaryDocumentRoot( string $docroot )
Migrate document root elsewhere
protected
# remapPublic( string $hostname , string $path = '', string $public = 'public' )
Migrate a document root to public/
public
# has_fortification( string $mode = NULL )
Web application supports fortification

Implementation of

public
# unfortify( string $hostname , string $path = '' )
Relax permissions to allow write-access
public
# getOptions( $docroot )
Get webapp options
public
# uninstall( string $hostname , string $path = '', string $delete = 'all' )
Remove an installed web application

Implementation of

protected
# map( $mode , $docroot , array $params = NULL )
protected
protected
# checkEmail( array & $options )
protected
# prepareSquash( array & $options )
Installation requested squash
protected
# checkVersion( array & $options )
Check and prepare version information
protected
# unsquash( string $docroot )
Change ownership from active uid to parent directory uid
public
# next_version( string $version , string $maximalbranch = '99999999.99999999.99999999' )
Get next version in hierarchy

Implementation of

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

Implementation of

public
# _cron( )
protected
# checkDocroot( $docroot , null $user = NULL )
Verify docroot is writeable before beginning installation
protected
# kill( $hostname , $path )
Kill processes running under location
protected
# _suggestDB( $domain )
Generate a DB name for installation

todo


protected
# _suggestUser( $dbname , string $host = 'localhost' )
Suggest a user given a database

todo


protected
# suggestPassword( int $maxlen = 32 )
Suggest a password

todo


protected
# setupDatabase( array $credentials , string $type = 'mysql' )
Populate database
protected
# getLatestVersion( string $branch = NULL )
Get latest release
protected
# fixRewriteBase( $docroot , $path = '' )
protected
# download( string $url , string $dest , bool $extract = true )
protected
# setInfo( string $docroot , array $info )
Set webapp meta
protected
public static
public
# configureSsl( string $hostname )
public
# theme_status( string $hostname , string $path = '', string $theme = NULL )
public
# install_theme( string $hostname , string $path = '', string $theme , string $version = NULL )
public
# uninstall_theme( string $hostname , string $path = '', string $theme , bool $force = false )
Methods inherited from Module\Skeleton\Standard
__construct(), __wakeup(), set_user_parameters(), clean_user_parameters(), set_session_id(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), get_service_names(), get_services(), get_new_services(), get_active_services(), get_config(), get_service_value(), set_config_journal(), set_config(), query(), _resetModule()
Methods used from NamespaceUtilitiesTrait trait
getNamespace() getBaseClassName() appendNamespace()
Constants Summary
public string APPLICATION_PREF_KEY
# 'webapps.paths'
public string APP_NAME
# 'undefined'
public string DEFAULT_VERSION_LOCK
# 'none'
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
public $exportedFunctions
# array ( '*' => 3, 'get_versions' => 15, 'is_current' => 15, 'next_version' => 15, )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql
Properties used from NamespaceUtilitiesTrait