Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
DB_system Class Reference

Class for MySQL management in the bureau. More...

+ Inheritance diagram for DB_system:

Public Member Functions

 DB_system ()
 Creator.
 DB_system ($user, $database, $password)
 Constructor.
- Public Member Functions inherited from DB_Sql
 DB_Sql ($query="")
 Constructor.
 link_id ()
 query_id ()
 connect ($Database="", $Host="", $User="", $Password="")
 function for MySQL database connection management
 free ()
 Discard the query result.
 query ($Query_String)
 Perform a query.
 next_record ()
 walk result set
 seek ($pos=0)
 public: position in result set
 lock ($table, $mode="write")
 unlock ()
 affected_rows ()
 num_rows ()
 num_fields ()
 nf ()
 np ()
 f ($Name)
 p ($Name)
 lastid ()
 nextid ($seq_name)
 metadata ($table='', $full=false)
 halt ($msg)
 haltmsg ($msg)
 table_names ()

Data Fields

 $Host
 $Database
 $User
 $Password
- Data Fields inherited from DB_Sql
 $Host = ""
 $Database = ""
 $User = ""
 $Password = ""
 $Auto_Free = 0
 $Debug = 0
 $Halt_On_Error = "no"
 $Seq_Table = "db_sequence"
 $Record = array()
 $Row
 $Errno = 0
 $Error = ""
 $type = "mysql"
 $revision = "1.2"
 $Link_ID = 0
 $Query_ID = 0
 $Query_String = ""

Detailed Description

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 138 of file config.php.

Member Function Documentation

DB_system (   $user,
  $database,
  $password 
)

Constructor.

Definition at line 124 of file bootstrap.php.

References $database, $password, and $user.

{
global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD;
$this->Host = "127.0.0.1";
$this->Database = $database;
$this->User = $user;
$this->Password = $password;
}
DB_system ( )

Creator.

Definition at line 144 of file config.php.

{
global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD;
$this->Host = $L_MYSQL_HOST;
$this->Database = $L_MYSQL_DATABASE;
$this->User = $L_MYSQL_LOGIN;
$this->Password = $L_MYSQL_PWD;
}

Field Documentation

$Database

Definition at line 139 of file config.php.

$Host

Definition at line 139 of file config.php.

$Password

Definition at line 139 of file config.php.

$User

Definition at line 139 of file config.php.


The documentation for this class was generated from the following files: