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
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
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_tables_prefix()   Sets DB tables prefix

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

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

API Tags:
Access:  private


[ Top ]
string   $db_default_charset [line 40]

Default charset (like utf8, latin1, etc.)

API Tags:
Access:  private


[ Top ]
string   $db_dsn [line 33]

Data Source Name

API Tags:
Access:  private


[ Top ]
string   $db_tables_prefix [line 54]

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 111]

  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 91]

  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 72]

  string get_db_dsn( )

Gets DB DSN


API Tags:
Access:  public


Implementation of:
I_DB_Config::get_db_dsn()
Gets DSN

[ Top ]
get_db_tables_prefix  [line 131]

  unknown get_db_tables_prefix( )

Gets DB tables prefix


API Tags:
Access:  public


[ Top ]
set_db_autocommit  [line 101]

  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 82]

  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 62]

  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_tables_prefix  [line 121]

  void set_db_tables_prefix( string $prefix  )

Sets DB tables prefix

Parameters:
string   $prefix: 

API Tags:
Access:  public


[ Top ]