DAO classes are used to unify the process of getting raw data from the persistence layer(it's on the TODO list to rename current DAO implementation into RecordSet).
DAO classes can have two methods:
To create a DAO object you can use this code:
$toolkit = lmbToolkit :: instance(); $mapper = $toolkit->createDAO('ArticleDAO');
DAO class file will be automatically found with lmbFileSchema.
Class name | Description |
---|---|
TableGatewayDAO | Allows to make requests to a db table with lmbTableGateway |
QueryBasedDAO | Allows to make complex select quesries.QueryBasedDAO is a decorator for lmbSelectQuery. |
ServicesListDAO | Returns a list of Services can be used with Limb-based project. |
Обсуждение