Class: Sql_Module
Source Location: /sql.php
Module_Skeleton
|
--Sql_Module
|
|
|
Class Details
[line 7]
Class Variables
Class Methods
method add_mysql_backup [line 981]
void add_mysql_backup(
$mDB,
$mExtension,
$mSpan, [
$mPreserve = '0'], [
$mEmail = ''])
|
|
Tags:
Parameters:
method add_mysql_user [line 299]
void add_mysql_user(
$mUser,
$mHost,
$mPassword, [
$mMaxConn = 5], [
$mMaxUpdates = 0], [
$mMaxQ = 0], [
$mSSL = ''], [
$mCipher = ''], [
$mIssuer = ''], [
$mSubject = ''])
|
|
bool add_mysql_user(string, string, string[, int[, int[, int[, string[, string[, string[, string]]]]]]])
Tags:
Parameters:
method add_mysql_user_permissions [line 377]
void add_mysql_user_permissions(
string
$mUser, string
$mHost, string
$mDB,
$mOpts)
|
|
bool add_mysql_user_permissions (string, string, string, array) Add/removes privileges for a user to a table, any value listed as false or not supplied as an array key will revoke the privilege
Tags:
Parameters:
method add_pgsql_backup [line 982]
void add_pgsql_backup(
$mDB,
$mExtension,
$mSpan, [
$mPreserve = '0'], [
$mEmail = ''])
|
|
Tags:
Parameters:
method add_pgsql_user [line 718]
void add_pgsql_user(
$mUser,
$mPassword, [
$mMaxConn = 5])
|
|
bool add_pgsql_user(string, string[, int])
Tags:
Parameters:
method add_pgsql_user_permissions [line 789]
void add_pgsql_user_permissions(
string
$mUser, string
$mDB,
$mOpts)
|
|
bool add_pgsql_user_permissions (string, string, string, array) Add/removes privileges for a user to a table, any value listed as false or not supplied as an array key will revoke the privilege
Tags:
Parameters:
method assert_mysql_permissions [line 544]
void assert_mysql_permissions(
)
|
|
Ensure that /var/lib/mysql/ has mysql:<group id> ownership
Tags:
method create_mysql_database [line 351]
bool create_mysql_database(
$mName, string
$mDBName)
|
|
bool create_mysql_database (string)
Tags:
Parameters:
method create_mysql_database_backend [line 483]
void create_mysql_database_backend(
$mName)
|
|
bool create_mysql_database_backend (string) create_mysql_database
Tags:
Parameters:
method create_pgsql_database [line 742]
bool create_pgsql_database(
$mName, string
$mDBName)
|
|
bool create_pgsql_database (string)
Tags:
Parameters:
method decrypt_sql_password [line 108]
string decrypt_sql_password(
string
$mSQLPasswd, string
$mSalt)
|
|
string decrypt_sql_password (string, string)
Tags:
Parameters:
method delete_mysql_backup [line 987]
void delete_mysql_backup(
$mDB)
|
|
Tags:
Parameters:
method delete_mysql_database [line 514]
bool delete_mysql_database(
string
$mDBName)
|
|
bool delete_mysql_database(string) Revokes all permissions from the database and permanently drops it
Tags:
Parameters:
method delete_mysql_database_backend [line 553]
void delete_mysql_database_backend(
$mDBName)
|
|
Tags:
Parameters:
method delete_mysql_user [line 672]
void delete_mysql_user(
string
$mUser, string
$mHost, [string
$mCascadeDB = false])
|
|
bool delete_mysql_user(string, string[, bool = false]) Delete a MySQL user
Tags:
Parameters:
method delete_mysql_user_permissions [line 425]
void delete_mysql_user_permissions(
$mUser,
$mHost,
$mDB)
|
|
Tags:
Parameters:
method delete_pgsql_backup [line 988]
void delete_pgsql_backup(
$mDB)
|
|
Tags:
Parameters:
method delete_pgsql_database [line 811]
bool delete_pgsql_database(
string
$mDBName)
|
|
bool delete_pgsql_database(string) Drops the database and revokes all permssions
Tags:
Parameters:
method delete_pgsql_user [line 894]
void delete_pgsql_user(
string
$mUser, [
$mCascadeDB = false])
|
|
bool delete_pgsql_user(string[, bool = false]) Delete a PostgreSQL user
Tags:
Parameters:
method delete_pgsql_user_permissions [line 793]
void delete_pgsql_user_permissions(
$mUser,
$mDB)
|
|
Tags:
Parameters:
method delete_sql_password [line 168]
void delete_sql_password(
$mUser, [
$mType = NULL])
|
|
bool delete_sql_password (string[, string]) Removes a stored SQL password
Tags:
Parameters:
method edit_mysql_backup [line 983]
void edit_mysql_backup(
$mDB,
$mExtension, [
$mSpan = '0'], [
$mPreserve = '0'], [
$mEmail = ''])
|
|
Tags:
Parameters:
method edit_mysql_user [line 580]
bool edit_mysql_user(
string
$mUser, string
$mHost, array
$mOpts)
|
|
bool edit_mysql_user(string, string, array) Note when calling through SOAP, all options must be given, otherwise the will default to server preferences.
Tags:
Parameters:
method edit_pgsql_backup [line 984]
void edit_pgsql_backup(
$mDB,
$mExtension, [
$mSpan = '0'], [
$mPreserve = '0'], [
$mEmail = ''])
|
|
Tags:
Parameters:
method edit_pgsql_user [line 849]
bool edit_pgsql_user(
string
$mUser, string
$mPassword, [int
$mConnLimit = NULL])
|
|
bool edit_pgsql_user(string, string, array) NOTE: Not implemented with PostgreSQL, owner of database automatically receives grants. Varying degrees of grants impact the usability of this function, i.e. common grants [SELECT, INSERT, UPDATE, DELETE] exist solely on the table level, while [CREATE, TEMP] exist on the database level
Tags:
Parameters:
method encrypt_sql_password [line 86]
string encrypt_sql_password(
string
$mSQLPasswd, string
$mSalt)
|
|
string encrypt_sql_password(string, string)
Tags:
Parameters:
method get_database_size [line 260]
void get_database_size(
string
$mType, string
$mName)
|
|
int get_database_size(string, string)
Tags:
Parameters:
method get_database_size_backend [line 276]
int get_database_size_backend(
string
$mType, string
$mName)
|
|
int get_database_size_backend(string, string)
Tags:
Parameters:
method get_elevated_password_backend [line 181]
void get_elevated_password_backend(
)
|
|
Tags:
method get_mysql_uptime [line 977]
int get_mysql_uptime
Tags:
method get_mysql_user_permissions [line 441]
void get_mysql_user_permissions(
$mUser,
$mHost,
$mDB)
|
|
Tags:
Parameters:
method get_pgsql_uptime [line 968]
int get_pgsql_uptime
Tags:
method get_pgsql_user_permissions [line 801]
void get_pgsql_user_permissions(
$mUser,
$mDB)
|
|
void get_pgsql_user_permissions(string, string) Function not implemented in PostgreSQL
Tags:
Parameters:
method get_sql_prefix [line 217]
method list_mysql_backups [line 985]
void list_mysql_backups(
)
|
|
Tags:
method list_mysql_databases [line 195]
array list_mysql_databases(
)
|
|
array list_mysql_databases () Queries the db table in the mysql database for applicable grants
Tags:
method list_mysql_users [line 225]
array list_mysql_users () Lists all created users for MySQL
Tags:
method list_pgsql_backups [line 986]
void list_pgsql_backups(
)
|
|
Tags:
method list_pgsql_databases [line 827]
array list_pgsql_databases(
)
|
|
array list_mysql_databases () Queries the db table in the mysql database for applicable grants
Tags:
method list_pgsql_users [line 876]
array list_pgsql_users(
)
|
|
array list_pgsql_users () Lists all created users for PostgreSQL
Tags:
method mysql_dump [line 940]
void mysql_dump(
$mUser,
$mPassword,
$mDB, [
$mFileName = null])
|
|
Tags:
Parameters:
method mysql_dump_backend [line 950]
void mysql_dump_backend(
$mUser,
$mPassword,
$mDB,
$mFileName)
|
|
Tags:
Parameters:
method mysql_import [line 212]
void mysql_import(
$mScript,
$mUser,
$mPassword,
$mDB)
|
|
bool mysql_import(string, string, string, strin)
Tags:
Parameters:
method pgsql_dump [line 958]
void pgsql_dump(
$mUser,
$mPassword,
$mDB,
$mFileName)
|
|
Tags:
Parameters:
method pgsql_import [line 931]
void pgsql_import(
$mScript,
$mUser,
$mPassword,
$mDB)
|
|
bool pgsql_import(string, string, string, strin)
Tags:
Parameters:
method pg_vacuum_db [line 912]
string pg_vacuum_db(
$mDBName)
|
|
string pg_vacuum_db (string) Vacuums a database
Tags:
Parameters:
method pg_vacuum_db_backend [line 920]
void pg_vacuum_db_backend(
$mDBName)
|
|
Tags:
Parameters:
method prep_tablespace_backend [line 773]
void prep_tablespace_backend(
)
|
|
void prep_tablespace_backend () prep_tablespace
Tags:
method retrieve_sql_password [line 154]
string retrieve_sql_password(
string
$mType)
|
|
string retrieve_sql_password (string)
Tags:
Parameters:
method service_enabled [line 705]
service service_enabled(
string
$mSrvcName)
|
|
bool service_enabled (string) Checks to see if a service is enabled
Tags:
Parameters:
method store_sql_password [line 129]
void store_sql_password(
string
$mSQLPasswd, string
$mType)
|
|
bool store_sql_password (string, string)
Tags:
Parameters:
|
|