tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: DB_Config

Source Location: /db/db_config.class.php

Class DB_Config

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Property Summary
integer   $db_autocommit   Is autocommit turned on. 0 = false, 1 = true
string   $db_default_charset   Default charset (like utf8, latin1, etc.)
string   $db_dsn   Data Source Name for NON-Persisten DB connection WITH transactions
unknown_type   $db_dsn_pnt   Data source name for Persistent DB connection withOUT transactions
string   $db_tables_prefix   Prefix for db tables. Useful for shared hostings where just one DB schema is available

[ Top ]
Method Summary
unknown   get_db_autocommit()   Gets autocommit mode
unknown   get_db_default_charset()   Gets default charset
string   get_db_dsn()   Gets DB DSN
string   get_db_dsn_pnt()   Gets db_dsn_pnt
unknown   get_db_tables_prefix()   Gets DB tables prefix
void   set_db_autocommit()   Sets autocommit mode. 0 = autocommit off, 1 = autocommit on
void   set_db_default_charset()   Sets DB default charset (like utf8, latin1, etc.)
void   set_db_dsn()   Sets DB DSN
void   set_db_dsn_pnt()   Sets db_dsn_pnt
void   set_db_tables_prefix()   Sets DB tables prefix

[ Top ]
Properties
integer   $db_autocommit = 0 [line 54]

Is autocommit turned on. 0 = false, 1 = true

API Tags:
Access:  private


[ Top ]
string   $db_default_charset [line 47]

Default charset (like utf8, latin1, etc.)

API Tags:
Access:  private


[ Top ]
string   $db_dsn [line 33]

Data Source Name for NON-Persisten DB connection WITH transactions

API Tags:
Access:  private


[ Top ]
unknown_type   $db_dsn_pnt [line 40]

Data source name for Persistent DB connection withOUT transactions

API Tags:
Access:  private


[ Top ]
string   $db_tables_prefix [line 61]

Prefix for db tables. Useful for shared hostings where just one DB schema is available

API Tags:
Access:  private


[ Top ]
Methods
get_db_autocommit  [line 138]

  unknown get_db_autocommit( )

Gets autocommit mode


API Tags:
Access:  public


Implementation of:
I_DB_Config::get_db_autocommit()
Gets autocommit mode

[ Top ]
get_db_default_charset  [line 118]

  unknown get_db_default_charset( )

Gets default charset


API Tags:
Access:  public


Implementation of:
I_DB_Config::get_db_default_charset()
Gets default charset

[ Top ]
get_db_dsn  [line 79]

  string get_db_dsn( )

Gets DB DSN


API Tags:
Access:  public


Implementation of:
I_DB_Config::get_db_dsn()
Gets DSN

[ Top ]
get_db_dsn_pnt  [line 99]

  string get_db_dsn_pnt( )

Gets db_dsn_pnt


API Tags:
Access:  public


[ Top ]
get_db_tables_prefix  [line 158]

  unknown get_db_tables_prefix( )

Gets DB tables prefix


API Tags:
Access:  public


[ Top ]
set_db_autocommit  [line 128]

  void set_db_autocommit( integer $auto  )

Sets autocommit mode. 0 = autocommit off, 1 = autocommit on

Parameters:
integer   $auto: 

API Tags:
Access:  public


Implementation of:
I_DB_Config::set_db_autocommit()
Sets autocommit mode true = on, false = off

[ Top ]
set_db_default_charset  [line 109]

  void set_db_default_charset( unknown_type $charset  )

Sets DB default charset (like utf8, latin1, etc.)

Parameters:
unknown_type   $charset: 

API Tags:
Access:  public


Implementation of:
I_DB_Config::set_db_default_charset()
Sets default charset.

[ Top ]
set_db_dsn  [line 69]

  void set_db_dsn( string $dsn  )

Sets DB DSN

Parameters:
string   $dsn: 

API Tags:
Access:  public


Implementation of:
I_DB_Config::set_db_dsn()
Sets DSN (Data Source Name)

[ Top ]
set_db_dsn_pnt  [line 89]

  void set_db_dsn_pnt( string $dsn  )

Sets db_dsn_pnt

Parameters:
string   $dsn: 

API Tags:
Access:  public


[ Top ]
set_db_tables_prefix  [line 148]

  void set_db_tables_prefix( string $prefix  )

Sets DB tables prefix

Parameters:
string   $prefix: 

API Tags:
Access:  public


[ Top ]