Static Public Member Functions | |
| static | getInstance ($cfg=null) |
| static | get ($type, $table, array $prm=array()) |
| static | getCfg ($key) |
| static | isI18nName ($field) |
| static | unI18nName ($field) |
| static | log ($sql=null, $bind=null) |
Data Fields | |
| const | FETCH_ASSOC = PDO::FETCH_ASSOC |
| const | FETCH_BOTH = PDO::FETCH_BOTH |
| const | FETCH_NUM = PDO::FETCH_NUM |
| const | FETCH_ROWSET = PDO::FETCH_CLASS |
| const | FETCH_COLUMN = PDO::FETCH_COLUMN |
Static Protected Member Functions | |
| static | init () |
Private Member Functions | |
| __construct () | |
Static Private Attributes | |
| static | $instances = array() |
| static | $cfg = null |
| static | $tables = array() |
| static | $log = array() |
factory class for all dbo sources
Definition at line 10 of file db.class.php.
| __construct | ( | ) | [private] |
No instanciation for this class
Definition at line 49 of file db.class.php.
| static get | ( | $ | type, | |
| $ | table, | |||
| array $ | prm = array() | |||
| ) | [static] |
Get a db object
| string | $type Element type (table, rowset or row) | |
| db_table|string | $table | |
| array | $prm Array parameter for the factory |
Definition at line 87 of file db.class.php.
| static getCfg | ( | $ | key | ) | [static] |
Get a db configuration value
| string | $key Ket value |
Definition at line 125 of file db.class.php.
| static getInstance | ( | $ | cfg = null |
) | [static] |
Get db instance
| string|array | $cfg String if use a configuration (and retrieve a singleton) or array to have an unique connection. Array must contain key use to specify the type to use |
Definition at line 58 of file db.class.php.
| static init | ( | ) | [static, protected] |
Init the config object
Definition at line 169 of file db.class.php.
| static isI18nName | ( | $ | field | ) | [static] |
indicate if a field is i18n
| string | $name Field name to test |
Definition at line 136 of file db.class.php.
| static log | ( | $ | sql = null, |
|
| $ | bind = null | |||
| ) | [static] |
Add a new query log or get the whole array of log
| string|null | $sql The query or null to get the whole log | |
| array|null | $bind Values Binded or null |
Definition at line 157 of file db.class.php.
| static unI18nName | ( | $ | field | ) | [static] |
Remove the i18n indicator part of a field (if presente
| string | $field |
Definition at line 146 of file db.class.php.
$cfg = null [static, private] |
Definition at line 30 of file db.class.php.
$instances = array() [static, private] |
Definition at line 23 of file db.class.php.
$log = array() [static, private] |
Definition at line 44 of file db.class.php.
$tables = array() [static, private] |
Definition at line 37 of file db.class.php.
| const FETCH_ASSOC = PDO::FETCH_ASSOC |
Definition at line 12 of file db.class.php.
| const FETCH_BOTH = PDO::FETCH_BOTH |
Definition at line 13 of file db.class.php.
| const FETCH_COLUMN = PDO::FETCH_COLUMN |
Definition at line 16 of file db.class.php.
| const FETCH_NUM = PDO::FETCH_NUM |
Definition at line 14 of file db.class.php.
| const FETCH_ROWSET = PDO::FETCH_CLASS |
Definition at line 15 of file db.class.php.
1.7.1