Module_Support_Sql

Copyright (C) Apis Networks, Inc - All Rights Reserved. Unauthorized copying of this file, via any medium, is strictly prohibited without consent. Any dissemination of material herein is prohibited. For licensing inquiries email <licensing@apisnetworks.com> Written by Matt Saladna <matt@apisnetworks.com>, May 2017
extends Module\Skeleton\Standard implements Opcenter\Contracts\Hookable

Known subclasses

Mysql_Module, Pgsql_Module, Sql_Module
Abstract
Open source code
Methods Summary
protected static
# pedantize( string $name )
Convert shorthand to formal name
protected
# renameDatabasePrefix( string $prefixold , string $prefixnew )
Rename databases on prefix change
protected
# renameDatabasePrefixByType( $type , $prefixold , $prefixnew )
protected
# renameUserPrefix( $prefixold , $prefixnew )
Rename secondary database users
protected
# renameUser( string $old , string $new )
protected
# renameUserByType( string $type , string $old , string $new )
Rename database user
protected
# renameUserPrefixByType( $type , $prefixold , $prefixnew )
protected
# installDatabaseService( string $svc )
Install database service
protected
# uninstallDatabaseService( string $svc )
Delete all databases from account
protected
# _register_temp_user( string $user )
Add temporary *sql user for cleanup
protected
# _connect_root( )
Establish privileged connection to MySQL server
protected
protected
# add_backup_real( $type , $db , $extension , $span , $preserve , $email )
protected
# svc_enabled( $type )
Verify if service is enabled
protected
# edit_backup_real( $type , $db , $extension , $span , $preserve , $email )
protected
# list_backups_real( string $type )
Wrapper to list backups for db type
protected
# delete_backup_real( $type , $db )
protected
# get_backup_config_real( $type , $db )
protected
# _escape( $str )
protected
# _preImport( $file , & $unlink )
protected
# _postImport( $file )
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 int PER_DATABASE_CONNECTION_LIMIT
# 20
public int DEFAULT_CONCURRENCY_LIMIT
# 10
public int MIN_PASSWORD_LENGTH
# 5
public int MIN_PREFIX_LENGTH
# 3
public string MASTER_USER
# 'root'
public double DB_BIN2TXT_MULT
a bullshit constant to decide whether to up the ulimit fsize or not before exporting a db
# 1.5
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
protected $_tempUsers
# array ( )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql