Inherited by DBConnectionCommon, DBConnectionMySQLImpl, and DBConnectionPostgreSQLImpl.
Public Member Functions | |
| getDbType () | |
| getNamingStrategy () | |
| setNamingStrategy (NamingStrategy $namingStrategy) | |
| load ($className, $id) | |
| loadAll ($className) | |
| find ($className, array $params, array $orders=[]) | |
| update ($obj) | |
| save ($obj) | |
| delete ($obj) | |
| close () | |
| beginTransaction () | |
| commit () | |
| rollBack () | |
Rozhrani pripojeni k db zapouzdruje PDO + pridava informace o db jaka se pouziva aby se mohly rozlisovat dotazy pro danou db
| beginTransaction | ( | ) |
zapocne transakci
Implemented in DBConnectionCommon.
| close | ( | ) |
closes connection an frees all cashed data
Implemented in DBConnectionCommon.
| commit | ( | ) |
commituje transakci
Implemented in DBConnectionCommon.
| delete | ( | $obj | ) |
deletes object form db
| mixed | object | $obj | id of object to delete or object to delete |
| find | ( | $className, | |
| array | $params, | ||
| array | $orders = [] |
||
| ) |
njde vsechny objekty odpovidajici parametrum
| class | $className | |
| array | $params | parametry podle kterych e ma hledat |
| array | $orders | jak se maji vysledky seradt |
Implemented in DBConnectionCommon.
| getDbType | ( | ) |
Implemented in DBConnectionCommon.
| getNamingStrategy | ( | ) |
Implemented in DBConnectionCommon.
| load | ( | $className, | |
| $id | |||
| ) |
returns object of class $className with id $id
| type | $className | |
| mixed | $id |
Implemented in DBConnectionCommon.
| loadAll | ( | $className | ) |
| class | $className |
Implemented in DBConnectionCommon.
| rollBack | ( | ) |
rollbackuje transakci
Implemented in DBConnectionCommon.
| save | ( | $obj | ) |
saves this object
| type | $obj |
Implemented in DBConnectionCommon.
| setNamingStrategy | ( | NamingStrategy | $namingStrategy | ) |
nastavuje gamimg stratey podle ktere se maji prekladat property na jmena tabulek a sloupcu
| NamingStrategy | $namingStrategy |
Implemented in DBConnectionCommon.
| update | ( | $obj | ) |
| objects | $obj | updates this object |
Implemented in DBConnectionCommon.