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
# renameDatabase( string $prefixold , string $prefixnew )
Rename databases on prefix change
protected
# renameDatabaseByType( $type , $prefixold , $prefixnew )
protected
# convertPrefix( string $what , string $old , string $new )
protected
# renameUser( $prefixold , $prefixnew )
Rename secondary database users
protected
# renameUserByType( $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( $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(), 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()
Constants Summary
public int PER_DATABASE_CONNECTION_LIMIT
# 20
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