Alternc
latest
Alternc logiel libre pour l'hébergement
|
Class for MySQL management in the panel. More...
Public Member Functions | |
__construct () | |
__construct () | |
__construct ($database, $user, $password) | |
connect ($Database="", $Host="", $User="", $Password="") | |
function for MySQL database connection management More... | |
free () | |
Discard the query result. More... | |
is_connected () | |
last_error () | |
query ($Query_String, $arguments=false) | |
Perform a query. More... | |
next_record () | |
walk result set More... | |
fetchAll () | |
fetch ($mode=PDO::FETCH_ASSOC) | |
lock ($table, $mode="write") | |
table locking More... | |
unlock () | |
table unlocking More... | |
affected_rows () | |
evaluate the result (size, width) More... | |
num_rows () | |
num_fields () | |
nf () | |
shorthand notation More... | |
np () | |
f ($Name) | |
current_record () | |
p ($Name) | |
lastid () | |
quote ($string) | |
Escape a string to use it into a SQL PDO query. More... | |
exec ($query) | |
Execute a direct query, not getting any result back. More... | |
nextid ($seq_name) | |
get next sequence numbers More... | |
metadata ($table='', $full=false) | |
DEPRECATED return table metadata. More... | |
halt ($msg) | |
private: error handling More... | |
haltmsg ($msg) | |
private: error handling More... | |
table_names () | |
Public Attributes | |
$Record = array() | |
Private Attributes | |
$Host | |
$Database | |
$User | |
$Password | |
$Auto_Free = False | |
$Debug = False | |
$Halt_On_Error = "no" | |
$Seq_Table = "db_sequence" | |
$Row = 0 | |
$num_rows | |
$Errno | |
$Error | |
$Query_String | |
$pdo_instance = NULL | |
$pdo_query = NULL | |
Class for MySQL management in the panel.
Class for MySQL management in the bureau.
This class heriting from the db class of the phplib manages the connection to the MySQL database.
Definition at line 28 of file bootstrap.php.
DB_system::__construct | ( | ) |
Definition at line 29 of file bootstrap.php.
References $L_MYSQL_DATABASE, $L_MYSQL_HOST, $L_MYSQL_LOGIN, and $L_MYSQL_PWD.
DB_system::__construct | ( | ) |
Definition at line 113 of file config.php.
References $L_MYSQL_DATABASE, $L_MYSQL_HOST, $L_MYSQL_LOGIN, and $L_MYSQL_PWD.
DB_system::__construct | ( | $database, | |
$user, | |||
$password | |||
) |
Definition at line 122 of file bootstrap.php.
|
inherited |
evaluate the result (size, width)
Definition at line 313 of file db_mysql.php.
|
inherited |
function for MySQL database connection management
This function manages the connection to the MySQL database.
$Database | name of the database |
$Host | DNS of the MySQL hosting server |
$User | the user's name |
$Password | the user's password |
Definition at line 89 of file db_mysql.php.
References DB_Sql\$Database, DB_Sql\$Host, DB_Sql\$Password, DB_Sql\$User, and DB_Sql\halt().
|
inherited |
Definition at line 351 of file db_mysql.php.
References DB_Sql\$Record.
|
inherited |
Execute a direct query, not getting any result back.
query | string query to execute |
Definition at line 381 of file db_mysql.php.
References $query.
|
inherited |
string | $Name |
Definition at line 343 of file db_mysql.php.
Referenced by DB_Sql\nextid().
|
inherited |
|
inherited |
|
inherited |
Discard the query result.
This function discards the last query result.
Definition at line 120 of file db_mysql.php.
Referenced by DB_Sql\fetch(), DB_Sql\fetchAll(), and DB_Sql\next_record().
|
inherited |
private: error handling
Definition at line 443 of file db_mysql.php.
References $msg, and DB_Sql\haltmsg().
Referenced by DB_Sql\connect(), DB_Sql\fetch(), DB_Sql\fetchAll(), DB_Sql\lock(), DB_Sql\next_record(), DB_Sql\nextid(), DB_Sql\query(), and DB_Sql\unlock().
|
inherited |
private: error handling
Definition at line 457 of file db_mysql.php.
References $msg.
Referenced by DB_Sql\halt().
|
inherited |
Definition at line 125 of file db_mysql.php.
Referenced by DB_Sql\lock(), DB_Sql\nextid(), DB_Sql\query(), and DB_Sql\unlock().
|
inherited |
Definition at line 130 of file db_mysql.php.
References DB_Sql\$Error.
|
inherited |
Definition at line 361 of file db_mysql.php.
|
inherited |
table locking
Definition at line 268 of file db_mysql.php.
References $key, $query, $value, DB_Sql\halt(), DB_Sql\is_connected(), and DB_Sql\query().
Referenced by DB_Sql\nextid().
|
inherited |
|
inherited |
walk result set
This function tests if a new record is available in the current query result.
Definition at line 205 of file db_mysql.php.
References DB_Sql\free(), and DB_Sql\halt().
Referenced by DB_Sql\nextid(), and DB_Sql\table_names().
|
inherited |
get next sequence numbers
Definition at line 389 of file db_mysql.php.
References $id, $q, DB_Sql\f(), DB_Sql\halt(), DB_Sql\is_connected(), DB_Sql\lock(), DB_Sql\next_record(), DB_Sql\query(), and DB_Sql\unlock().
|
inherited |
|
inherited |
Definition at line 334 of file db_mysql.php.
References DB_Sql\num_rows(), and print.
|
inherited |
Definition at line 322 of file db_mysql.php.
|
inherited |
Definition at line 317 of file db_mysql.php.
Referenced by DB_Sql\nf(), and DB_Sql\np().
|
inherited |
|
inherited |
Perform a query.
This function performs the MySQL query described in the string parameter
a | string describing the MySQL query |
arguments | is an optionnal array for future use with PDO parametrized requests |
Definition at line 144 of file db_mysql.php.
References DB_Sql\$Query_String, DB_Sql\halt(), DB_Sql\is_connected(), and THROW_EXCEPTIONS.
Referenced by DB_Sql\lock(), DB_Sql\nextid(), DB_Sql\table_names(), and DB_Sql\unlock().
|
inherited |
Escape a string to use it into a SQL PDO query.
string | string to escape |
Definition at line 371 of file db_mysql.php.
References $string.
|
inherited |
Definition at line 465 of file db_mysql.php.
References DB_Sql\next_record(), DB_Sql\p(), and DB_Sql\query().
|
inherited |
table unlocking
Definition at line 299 of file db_mysql.php.
References DB_Sql\halt(), DB_Sql\is_connected(), and DB_Sql\query().
Referenced by DB_Sql\nextid().
|
privateinherited |
Definition at line 36 of file db_mysql.php.
|
privateinherited |
Definition at line 31 of file db_mysql.php.
Referenced by DB_Sql\connect().
|
privateinherited |
Definition at line 37 of file db_mysql.php.
|
privateinherited |
Definition at line 47 of file db_mysql.php.
|
privateinherited |
Definition at line 48 of file db_mysql.php.
Referenced by DB_Sql\last_error().
|
privateinherited |
Definition at line 38 of file db_mysql.php.
|
privateinherited |
Definition at line 30 of file db_mysql.php.
Referenced by DB_Sql\connect().
|
privateinherited |
Definition at line 44 of file db_mysql.php.
|
privateinherited |
Definition at line 33 of file db_mysql.php.
Referenced by DB_Sql\connect().
|
privateinherited |
Definition at line 54 of file db_mysql.php.
|
privateinherited |
Definition at line 55 of file db_mysql.php.
|
privateinherited |
Definition at line 51 of file db_mysql.php.
Referenced by DB_Sql\query().
|
inherited |
Definition at line 42 of file db_mysql.php.
Referenced by DB_Sql\current_record().
|
privateinherited |
Definition at line 43 of file db_mysql.php.
|
privateinherited |
Definition at line 39 of file db_mysql.php.
|
privateinherited |
Definition at line 32 of file db_mysql.php.
Referenced by DB_Sql\connect().